mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
setup.py: ensure gevent monkey-patch is called before running tests with python setup.py test
This commit is contained in:
parent
bb64d0de54
commit
2d54bb87be
10
setup.py
10
setup.py
@ -8,14 +8,6 @@ import glob
|
||||
from pywb import __version__
|
||||
|
||||
|
||||
# Fix for TypeError: 'NoneType' object is not callable" error
|
||||
# when running 'python setup.py test'
|
||||
try:
|
||||
import multiprocessing
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
long_description = open('README.rst').read()
|
||||
|
||||
|
||||
@ -26,6 +18,8 @@ class PyTest(TestCommand):
|
||||
self.test_suite = ' '
|
||||
|
||||
def run_tests(self):
|
||||
from gevent.monkey import patch_all; patch_all()
|
||||
|
||||
import pytest
|
||||
import sys
|
||||
import os
|
||||
|
Loading…
x
Reference in New Issue
Block a user