Ensure that gevent is properly patched when invoking pytest
Project description
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for pytest_gevent-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b64d9196ae84815a6d339da1a2fe4acb156cc776efe4eaa2be6597d2ac20011 |
|
MD5 | ae856fe5d9af713fe84e94478d33f125 |
|
BLAKE2b-256 | 5781cbc9c6144335b2a1659610df8fd7d3d94cbf204e7cdf59d05cbcc45eea68 |