Commit 1b61fbc2 authored by Denis Bilenko's avatar Denis Bilenko

better error reporting when importing a standard test module failed

parent f6aa5626
......@@ -29,7 +29,12 @@ def patch_all(timeout=None):
def prepare_stdlib_test(filename):
patch_all(timeout=20)
from test import test_support
import test
try:
from test import test_support
except ImportError:
sys.stderr.write('test.__file__ = %s\n' % test.__file__)
raise
test_support.use_resources = ContainsAll()
name = filename.replace('_patched', '').replace('.py', '')
......
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