Issue 6816: Provide CPython command line functionality via runpy module (original) (raw)

Another probably related buildbot failure (again, lack of escaping the regex pattern):

====================================================================== ERROR: test_directory_error (test.test_runpy.RunPathTest)

Traceback (most recent call last): File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/runpy.py", line 125, in _get_main_module_details return _get_module_details(main_name) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/runpy.py", line 115, in _get_module_details raise ImportError("No code object available for %s" % mod_name) ImportError: No code object available for main

During handling of the above exception, another exception occurred:

ImportError: can't find 'main' module in '/private/var/folders/hm/hmcPs0tuELuc-92a0F0LIk+++TM/-Tmp-/tmpp8zORb'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/test/test_runpy.py", line 334, in test_directory_error self._check_import_error(script_dir, msg) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/test/test_runpy.py", line 295, in _check_import_error self.assertRaisesRegexp(ImportError, msg, run_path, script_name) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/unittest/case.py", line 869, in assertRaisesRegexp callable_obj(*args, **kwargs) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/unittest/case.py", line 126, in exit expected_regexp = re.compile(expected_regexp) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/re.py", line 205, in compile return _compile(pattern, flags) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/re.py", line 273, in _compile p = sre_compile.compile(pattern, flags) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/sre_compile.py", line 491, in compile p = sre_parse.parse(p, flags) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/sre_parse.py", line 692, in parse p = _parse_sub(source, pattern, 0) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/sre_parse.py", line 315, in _parse_sub itemsappend(_parse(source, state)) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/sre_parse.py", line 522, in _parse raise error("multiple repeat") sre_constants.error: multiple repeat

====================================================================== ERROR: test_zipfile_error (test.test_runpy.RunPathTest)

Traceback (most recent call last): File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/runpy.py", line 125, in _get_main_module_details return _get_module_details(main_name) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/runpy.py", line 115, in _get_module_details raise ImportError("No code object available for %s" % mod_name) ImportError: No code object available for main

During handling of the above exception, another exception occurred:

ImportError: can't find 'main' module in '/private/var/folders/hm/hmcPs0tuELuc-92a0F0LIk+++TM/-Tmp-/tmpOprB3K/test_zip.zip'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/test/test_runpy.py", line 357, in test_zipfile_error self._check_import_error(zip_name, msg) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/test/test_runpy.py", line 295, in _check_import_error self.assertRaisesRegexp(ImportError, msg, run_path, script_name) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/unittest/case.py", line 869, in assertRaisesRegexp callable_obj(*args, **kwargs) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/unittest/case.py", line 126, in exit expected_regexp = re.compile(expected_regexp) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/re.py", line 205, in compile return _compile(pattern, flags) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/re.py", line 273, in _compile p = sre_compile.compile(pattern, flags) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/sre_compile.py", line 491, in compile p = sre_parse.parse(p, flags) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/sre_parse.py", line 692, in parse p = _parse_sub(source, pattern, 0) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/sre_parse.py", line 315, in _parse_sub itemsappend(_parse(source, state)) File "/Users/buildbot/buildarea/3.x.heller-x86-osx5/build/Lib/sre_parse.py", line 522, in _parse raise error("multiple repeat") sre_constants.error: multiple repeat


Ran 16 tests in 32.210s