Issue 8730: Spurious test failure in distutils (original) (raw)
Output of test_distutils on a older SuSE Linux system:
FAILED (errors=1, skipped=5) Traceback (most recent call last): File "../Lib/test/test_distutils.py", line 18, in test_main() File "../Lib/test/test_distutils.py", line 13, in test_main test_support.run_unittest(distutils.tests.test_suite()) File "/home/xsupport/rtest/python-trunk/Lib/test/test_support.py", line 1038, in run_unittest _run_suite(suite) File "/home/xsupport/rtest/python-trunk/Lib/test/test_support.py", line 1021, in _run_suite raise TestFailed(err) test.test_support.TestFailed: Traceback (most recent call last): File "/home/xsupport/rtest/python-trunk/Lib/distutils/tests/test_archive_util.py", line 167, in test_compress_deprecated make_tarball(base_name, 'dist', compress='compress') File "/home/xsupport/rtest/python-trunk/Lib/distutils/archive_util.py", line 116, in make_tarball spawn(cmd, dry_run=dry_run) File "/home/xsupport/rtest/python-trunk/Lib/distutils/spawn.py", line 34, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/home/xsupport/rtest/python-trunk/Lib/distutils/spawn.py", line 141, in _spawn_posix (cmd[0], exit_status) DistutilsExecError: command 'compress' failed with exit status 1
This system has a fake 'compress' command that only supports uncompress functionality:
$ compress --help Usage: compress OPTION FILE Dummy script for uncompressing legacy shar files.
with OPTION in: --help display this help and exit --version output version information and exit
-d uncompress
Use `gzip' for compressing files.