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) ...
# with gevent 1.5+ you'll be able to do
# python -m gevent.monkey --module pytest ...
Release files for pytest-gevent 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pytest_gevent-1.1.0.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytest_gevent-1.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / pytest_gevent-1.1.0.tar.gz
| Download URL | pytest_gevent-1.1.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bbf6d7f9db3bae3dc2d7c3d18cfe32efa1568cdf8b624348e92f64c0b857581
|
|
BLAKE2b-256 checksum How to use checksums |
ab49cbed2ecff68e851a454437e7a80f05e483409eff3a6bef9fab31038d4018
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
|
Release files / pytest_gevent-1.1.0-py2.py3-none-any.whl
| Download URL | pytest_gevent-1.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a9d8ea2b6cc7e1e4fe51195194750ce404c1b842a60f045dcc92ce8425309f64
|
|
BLAKE2b-256 checksum How to use checksums |
c0a22874d536e202107b118afc0df8692c7119543666d5231846925198ae8b1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
|