Commit eafe02ad authored by Denis Bilenko's avatar Denis Bilenko

avoid unnecessary imports because they obscure the source of the problem

parent d7f94b46
...@@ -47,13 +47,13 @@ def prepare_stdlib_test(filename): ...@@ -47,13 +47,13 @@ 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
except ImportError: else:
sys.stderr.write('test.__file__ = %s\n' % test.__file__) from test import test_support
raise except ImportError:
sys.stderr.write('test.__file__ = %s\n' % test.__file__)
raise
test_support.use_resources = ContainsAll() test_support.use_resources = ContainsAll()
name = os.path.splitext(os.path.basename(filename))[0].replace('_patched', '') name = os.path.splitext(os.path.basename(filename))[0].replace('_patched', '')
......
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