Commit eafe02ad authored by Denis Bilenko's avatar Denis Bilenko

avoid unnecessary imports because they obscure the source of the problem

parent d7f94b46
...@@ -47,10 +47,10 @@ def prepare_stdlib_test(filename): ...@@ -47,10 +47,10 @@ def prepare_stdlib_test(filename):
patch_all(timeout=20) patch_all(timeout=20)
import test import test
try: try:
from test import test_support if sys.version_info[0] >= 3:
except ImportError:
try:
from test import support as test_support from test import support as test_support
else:
from test import test_support
except ImportError: except ImportError:
sys.stderr.write('test.__file__ = %s\n' % test.__file__) sys.stderr.write('test.__file__ = %s\n' % test.__file__)
raise raise
......
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