Skip to main content

Ensure that gevent is properly patched when invoking pytest

Project description

Build Status Azure DevOps coverage

pytest-gevent

Ensure that gevent is properly patched when invoking pytest

installation

pip install pytest-gevent

usage

wherever you'd use pytest, use pytest-gevent instead.

disabling specific patches

you can disable specific gevent patches through environment variables. for example, if you wanted to disable the ssl patch you would invoke:

PYTEST_GEVENT_PATCH_ALL_NO_SSL=1 pytest-gevent

how this works

this calls gevent.monkey.patch_all(...) and then pytest.main()

alternatives

gevent.monkey provides a cli directly, though it's quite clunky to use

python -m gevent.monkey $(which pytest) ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_gevent-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_gevent-1.0.0-py2.py3-none-any.whl (3.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest_gevent-1.0.0.tar.gz.

File metadata

  • Download URL: pytest_gevent-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for pytest_gevent-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2ac0cdd7f546f27de1cd3f65e40139606265c93710b8e3668f4f8d0afe6027da
MD5 ecd3565d6eccaf30dbf8a23168191e8a
BLAKE2b-256 bd9f29a490740492dffafa307813f94dc3982918345c65919af5d3db9e27c3d4

See more details on using hashes here.

File details

Details for the file pytest_gevent-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pytest_gevent-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.6.8

File hashes

Hashes for pytest_gevent-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2b64d9196ae84815a6d339da1a2fe4acb156cc776efe4eaa2be6597d2ac20011
MD5 ae856fe5d9af713fe84e94478d33f125
BLAKE2b-256 5781cbc9c6144335b2a1659610df8fd7d3d94cbf204e7cdf59d05cbcc45eea68

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page