This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author doko
Recipients brett.cannon, doko, eric.snow, ncoghlan
Date 2014-04-15.22:16:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397600181.83.0.758754205227.issue21249@psf.upfronthosting.co.za>
In-reply-to
Content
At least Linux distros never ship pythonXY.zip, so I'm removing it from sys.path to save the extra lookup for a file which never exists.  This did work in 2.x and 3.x up to 3.3.  In 3.4 it does cause additional test failures:

Re-running test 'test_cmd_line_script' in verbose mode
[...]
test_zipfile_compiled (test.test_cmd_line_script.CmdLineTest) ... ok
test_zipfile_error (test.test_cmd_line_script.CmdLineTest) ... FAIL

======================================================================
FAIL: test_directory_error (test.test_cmd_line_script.CmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python3.4-3.4.0/Lib/test/test_cmd_line_script.py", line 213, in test_directory_error
    self._check_import_error(script_dir, msg)
  File "/build/buildd/python3.4-3.4.0/Lib/test/test_cmd_line_script.py", line 156, in _check_import_error
    self.assertIn(expected_msg.encode('utf-8'), err)
AssertionError: b"can't find '__main__' module in '/tmp/tmpc2iybbmi'" not found in b"Could not import runpy module\nImportError: No module named 'runpy'"

======================================================================
FAIL: test_zipfile_error (test.test_cmd_line_script.CmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python3.4-3.4.0/Lib/test/test_cmd_line_script.py", line 235, in test_zipfile_error
    self._check_import_error(zip_name, msg)
  File "/build/buildd/python3.4-3.4.0/Lib/test/test_cmd_line_script.py", line 156, in _check_import_error
    self.assertIn(expected_msg.encode('utf-8'), err)
AssertionError: b"can't find '__main__' module in '/tmp/tmp34n7w8gj/test_zip.zip'" not found in b"Could not import runpy module\nImportError: No module named 'runpy'"

----------------------------------------------------------------------
Ran 24 tests in 1.906s

FAILED (failures=2)
test test_cmd_line_script failed

Re-running test 'test_zipimport_support' in verbose mode
test_doctest_issue4197 (test.test_zipimport_support.ZipSupportTests) ... ok
test_doctest_main_issue4197 (test.test_zipimport_support.ZipSupportTests) ... FAIL
test_inspect_getsource_issue4223 (test.test_zipimport_support.ZipSupportTests) ... ok
test_pdb_issue4201 (test.test_zipimport_support.ZipSupportTests) ... ok

======================================================================
FAIL: test_doctest_main_issue4197 (test.test_zipimport_support.ZipSupportTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/build/buildd/python3.4-3.4.0/Lib/test/test_zipimport_support.py", line 209, in test_doctest_main_issue4197
    rc, out, err = assert_python_ok(zip_name)
  File "/build/buildd/python3.4-3.4.0/Lib/test/script_helper.py", line 69, in assert_python_ok
    return _assert_python(True, *args, **env_vars)
  File "/build/buildd/python3.4-3.4.0/Lib/test/script_helper.py", line 55, in _assert_python
    "stderr follows:\n%s" % (rc, err.decode('ascii', 'ignore')))
AssertionError: Process return code is 1, stderr follows:
Could not import runpy module
ImportError: No module named 'runpy'
History
Date User Action Args
2014-04-15 22:16:21dokosetrecipients: + doko, brett.cannon, ncoghlan, eric.snow
2014-04-15 22:16:21dokosetmessageid: <1397600181.83.0.758754205227.issue21249@psf.upfronthosting.co.za>
2014-04-15 22:16:21dokolinkissue21249 messages
2014-04-15 22:16:21dokocreate