1
0
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:
Ilya Kreymer 2017-01-26 00:37:35 -08:00
parent bb64d0de54
commit 2d54bb87be

View File

@ -8,14 +8,6 @@ import glob
from pywb import __version__ 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() long_description = open('README.rst').read()
@ -26,6 +18,8 @@ class PyTest(TestCommand):
self.test_suite = ' ' self.test_suite = ' '
def run_tests(self): def run_tests(self):
from gevent.monkey import patch_all; patch_all()
import pytest import pytest
import sys import sys
import os import os