mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-28 00:25:21 +01:00
tests/gevent: skip gevent monkey patch when running tests
This commit is contained in:
parent
08cb02c644
commit
4b37d13c34
3
pywb/apps/conftest.py
Normal file
3
pywb/apps/conftest.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
def pytest_configure(config):
|
||||||
|
import sys
|
||||||
|
sys._called_from_test = True
|
@ -1,3 +1,6 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
if not hasattr(sys, '_called_from_test'): #pragma: no cover
|
||||||
# Use gevent if available
|
# Use gevent if available
|
||||||
try:
|
try:
|
||||||
from gevent.monkey import patch_all; patch_all()
|
from gevent.monkey import patch_all; patch_all()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user