[New-bugs-announce] [issue8730] Spurious test failure in distutils

Ronald Oussoren report at bugs.python.org
Sun May 16 14:21:57 CEST 2010

New submission from Ronald Oussoren <ronaldoussoren at mac.com>:

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 <module>
  File "../Lib/test/test_distutils.py", line 13, in test_main
  File "/home/xsupport/rtest/python-trunk/Lib/test/test_support.py", line 1038, in run_unittest
  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.

assignee: tarek
components: Distutils
messages: 105862
nosy: ronaldoussoren, tarek
priority: normal
severity: normal
stage: needs patch
status: open
title: Spurious test failure in distutils
type: behavior
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list