[issue1739468] Add a -z interpreter flag to execute a zip file
Guido van Rossum
report at bugs.python.org
Mon Nov 19 18:30:31 CET 2007
Guido van Rossum added the comment:
Actually the failures aren't OSX-specific:
======================================================================
FAIL: test_directory (__main__.CmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_cmd_line_script.py", line 117, in test_directory
self._check_script(script_dir, script_name, script_dir)
File "Lib/test/test_cmd_line_script.py", line 96, in _check_script
self.assertEqual(exit_code, 0, data)
AssertionError: /usr/local/google/home/guido/python/py3k/python:
'/tmp/tmpLGqOxc' is a directory, cannot continue
======================================================================
FAIL: test_directory_compiled (__main__.CmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_cmd_line_script.py", line 124, in
test_directory_compiled
self._check_script(script_dir, compiled_name, script_dir)
File "Lib/test/test_cmd_line_script.py", line 96, in _check_script
self.assertEqual(exit_code, 0, data)
AssertionError: /usr/local/google/home/guido/python/py3k/python:
'/tmp/tmprNwPih' is a directory, cannot continue
======================================================================
FAIL: test_zipfile (__main__.CmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_cmd_line_script.py", line 130, in test_zipfile
self._check_script(zip_name, None, zip_name)
File "Lib/test/test_cmd_line_script.py", line 96, in _check_script
self.assertEqual(exit_code, 0, data)
AssertionError: File "/tmp/tmpInCAJO/test_zip.zip", line 1
PK# statements being executed
^
SyntaxError: invalid syntax
[25429 refs]
======================================================================
FAIL: test_zipfile_compiled (__main__.CmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "Lib/test/test_cmd_line_script.py", line 137, in
test_zipfile_compiled
self._check_script(zip_name, None, zip_name)
File "Lib/test/test_cmd_line_script.py", line 96, in _check_script
self.assertEqual(exit_code, 0, data)
AssertionError: File "/tmp/tmpqh6g1C/test_zip.zip", line 1
SyntaxError: Non-UTF-8 code starting with '\xc8' in file
/tmp/tmpqh6g1C/test_zip.zip on line 2, but no encoding declared; see
http://python.org/dev/peps/pep-0263/ for details
[25428 refs]
_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1739468>
_____________________________________
More information about the Python-bugs-list
mailing list