Skip to main content

Ensure that gevent is properly patched when invoking pytest

Project description

Build Status Azure DevOps coverage


Ensure that gevent is properly patched when invoking pytest


pip install pytest-gevent


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:


how this works

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


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

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

Project details

Release history Release notifications

Download files

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

Files for pytest-gevent, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_gevent-1.0.0-py2.py3-none-any.whl (3.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size pytest_gevent-1.0.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page