Commit a5f821d5 authored by Jason Madden's avatar Jason Madden

Fix test reference from pypy

parent dd58078c
......@@ -1074,7 +1074,7 @@ def disable_tests_in_source(source, filename):
# If we do it on a def-by-def basis, we can break syntax
# if the function is already decorated
pattern = r'^import .*'
replacement = r'from . import patched_tests_setup as _GEVENT_PTS;'
replacement = r'from gevent.testing import patched_tests_setup as _GEVENT_PTS;'
replacement += r'import unittest as _GEVENT_UTS;'
replacement += r'\g<0>'
source, n = re.subn(pattern, replacement, source, 1, re.MULTILINE)
......
......@@ -667,7 +667,7 @@ def test_main(verbose=None):
# XXX: gevent: On windows with pypy2, some of these
# tests are incredibly slow or hang in shutdown for unknown
# reasons
import greentest
import gevent.testing as greentest
MySimpleHTTPRequestHandlerTestCase = SimpleHTTPRequestHandlerTestCase
MySimpleHTTPServerTestCase = SimpleHTTPServerTestCase
MyCGIHTTPServerTestCase = CGIHTTPServerTestCase
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment