Commit 09de2c5b authored by Denis Bilenko's avatar Denis Bilenko

greentest/helper.py: try test.support if test_support is not available (py3k)....

greentest/helper.py: try test.support if test_support is not available (py3k). Patch by Damien Churchill.
parent 9cfe2a77
...@@ -46,8 +46,11 @@ def prepare_stdlib_test(filename): ...@@ -46,8 +46,11 @@ def prepare_stdlib_test(filename):
try: try:
from test import test_support from test import test_support
except ImportError: except ImportError:
sys.stderr.write('test.__file__ = %s\n' % test.__file__) try:
raise from test import support as test_support
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