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.
Created on 2011年02月26日 20:29 by westley.martinez, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| test_distutils | westley.martinez, 2011年02月26日 20:29 | Test output | ||
| Messages (20) | |||
|---|---|---|---|
| msg129588 - (view) | Author: Westley Martínez (westley.martinez) * | Date: 2011年02月26日 20:29 | |
test_compressed_deprecated failed |
|||
| msg129651 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年02月27日 20:38 | |
Can you provide the test's failing report and traceback? |
|||
| msg129653 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2011年02月27日 21:05 | |
My mistake; missed the attachment. |
|||
| msg130122 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年03月05日 15:50 | |
Thanks for the report. What is your OS name and exact version? |
|||
| msg130126 - (view) | Author: Westley Martínez (westley.martinez) * | Date: 2011年03月05日 17:42 | |
Arch Linux kernel 2.6.37.2 glibc 2.13 |
|||
| msg132113 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年03月25日 16:32 | |
Can you run "./python -m distutils.tests.test_archive_util"? We may get more output. |
|||
| msg132170 - (view) | Author: Westley Martínez (westley.martinez) * | Date: 2011年03月25日 22:28 | |
test_check_archive_formats (__main__.ArchiveUtilTestCase) ... ok test_compress_deprecated (__main__.ArchiveUtilTestCase) ... FAIL test_make_archive (__main__.ArchiveUtilTestCase) ... ok test_make_archive_cwd (__main__.ArchiveUtilTestCase) ... ok test_make_tarball (__main__.ArchiveUtilTestCase) ... ok test_make_zipfile (__main__.ArchiveUtilTestCase) ... ok test_make_zipfile_no_zlib (__main__.ArchiveUtilTestCase) ... ok test_tarfile_vs_tar (__main__.ArchiveUtilTestCase) ... ok ====================================================================== FAIL: test_compress_deprecated (__main__.ArchiveUtilTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/westley/Projects/cpython/Lib/distutils/tests/test_archive_util.py", line 165, in test_compress_deprecated self.assertTrue(os.path.exists(tarball)) AssertionError: False is not true ---------------------------------------------------------------------- Ran 8 tests in 0.203s FAILED (failures=1) Traceback (most recent call last): File "/home/westley/Projects/cpython/Lib/runpy.py", line 160, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/home/westley/Projects/cpython/Lib/runpy.py", line 73, in _run_code exec(code, run_globals) File "/home/westley/Projects/cpython/Lib/distutils/tests/test_archive_util.py", line 248, in <module> run_unittest(test_suite()) File "/home/westley/Projects/cpython/Lib/test/support.py", line 1192, in run_unittest _run_suite(suite) File "/home/westley/Projects/cpython/Lib/test/support.py", line 1175, in _run_suite raise TestFailed(err) test.support.TestFailed: Traceback (most recent call last): File "/home/westley/Projects/cpython/Lib/distutils/tests/test_archive_util.py", line 165, in test_compress_deprecated self.assertTrue(os.path.exists(tarball)) AssertionError: False is not true [101559 refs] |
|||
| msg132172 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年03月25日 22:31 | |
Okay, verbose mode does not yield more info :) Is the compress program special on your system? |
|||
| msg132177 - (view) | Author: Westley Martínez (westley.martinez) * | Date: 2011年03月25日 22:46 | |
I may have figured out the problem. The test checks if the archive's extension is '.tar.Z', but the compress command on my computer appends the .gz extension to the file. To my surprise, the gunzip command worked on the file. So the compress command was actually creating gzipped files. |
|||
| msg132180 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年03月25日 23:08 | |
Funny, that’s the second broken compress program we’re hearing of. Can you give me the output of platform.linux_distribution() so that we can skip this test on your OS? |
|||
| msg132182 - (view) | Author: Westley Martínez (westley.martinez) * | Date: 2011年03月25日 23:32 | |
('', '', '')
:D
I'm using Arch Linux.
|
|||
| msg132183 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年03月25日 23:33 | |
:D I know you’re using Arch, but I need a way to get that info from Python to skip the test. |
|||
| msg132185 - (view) | Author: Westley Martínez (westley.martinez) * | Date: 2011年03月25日 23:39 | |
So how do other distros do it? |
|||
| msg132186 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年03月26日 00:01 | |
In general, we prefer to test for the presence of a feature rather than hard-coding operating systems names. when this is inevitable, we use sys.platform (say for different BSDs) or platform.linux_distribution (which returns meaningful values for most common distros). I don’t know how to detect your OS :) Could you open a feature request to add support for Arch in platform.linux_distribution in 3.3? |
|||
| msg132759 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年04月01日 16:56 | |
Thanks for opening #11678 for the feature request. To fix this in all versions, we would need a way to find that the current OS is Arch, and/or that the compress program is faulty. Do you know how to do that? Maybe with lsb_release? |
|||
| msg132769 - (view) | Author: Westley Martínez (westley.martinez) * | Date: 2011年04月01日 22:06 | |
I've already got a patch ready for #11678. As for checking the compress command, perhaps we can accomplish it by comparing version information of the program: $ compress --version compress 1.4 Copyright (C) 2007 Free Software Foundation, Inc. Copyright (C) 1993 Jean-loup Gailly. This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. Written by Jean-loup Gailly. The last line may be the key. It says Jean-loup Gailly; he invented the gzip compression method, but not the LZW method used by the original compress program. |
|||
| msg134308 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年04月23日 15:51 | |
Okay. It’s not a very beautiful check, but it will do. Do you want to make a patch to disable compress if it’s a fake compress program? |
|||
| msg143501 - (view) | Author: Westley Martínez (westley.martinez) * | Date: 2011年09月05日 01:01 | |
I emailed the Arch Linux people to get more information on this particular issue. If they decide that the compress program will stay as is I will write attempt to write a patch to skip the test based on the output of compress's --version flag. |
|||
| msg143620 - (view) | Author: Westley Martínez (westley.martinez) * | Date: 2011年09月06日 16:13 | |
https://bugs.archlinux.org/task/25908 Looks like Allan will be taking care of this problem (eventually). I think this bug can be closed. |
|||
| msg143622 - (view) | Author: Éric Araujo (eric.araujo) * (Python committer) | Date: 2011年09月06日 16:16 | |
Thank you for investigating. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:13 | admin | set | github: 55549 |
| 2011年09月06日 16:16:45 | eric.araujo | set | assignee: tarek -> eric.araujo resolution: fixed -> wont fix messages: + msg143622 stage: resolved |
| 2011年09月06日 16:13:27 | westley.martinez | set | status: open -> closed resolution: fixed messages: + msg143620 |
| 2011年09月05日 01:01:19 | westley.martinez | set | messages: + msg143501 |
| 2011年05月04日 16:06:04 | eric.araujo | link | issue11991 superseder |
| 2011年04月23日 15:51:38 | eric.araujo | set | messages: + msg134308 |
| 2011年04月01日 22:06:48 | westley.martinez | set | messages: + msg132769 |
| 2011年04月01日 16:56:25 | eric.araujo | set | title: test_distutils fails -> test_distutils fails because of borked compress program nosy: + alexis messages: + msg132759 versions: + 3rd party, Python 3.1, Python 2.7, Python 3.2 components: + Distutils2 |
| 2011年03月26日 00:01:37 | eric.araujo | set | messages: + msg132186 |
| 2011年03月25日 23:39:43 | westley.martinez | set | messages: + msg132185 |
| 2011年03月25日 23:33:32 | eric.araujo | set | messages: + msg132183 |
| 2011年03月25日 23:32:29 | westley.martinez | set | messages: + msg132182 |
| 2011年03月25日 23:08:22 | eric.araujo | set | messages: + msg132180 |
| 2011年03月25日 22:46:39 | westley.martinez | set | messages: + msg132177 |
| 2011年03月25日 22:31:57 | eric.araujo | set | messages: + msg132172 |
| 2011年03月25日 22:28:32 | westley.martinez | set | messages: + msg132170 |
| 2011年03月25日 16:32:26 | eric.araujo | set | messages: + msg132113 |
| 2011年03月05日 17:42:47 | westley.martinez | set | nosy:
brett.cannon, tarek, eric.araujo, westley.martinez messages: + msg130126 |
| 2011年03月05日 15:50:50 | eric.araujo | set | nosy:
+ tarek, eric.araujo messages: + msg130122 assignee: tarek components: + Distutils, - Tests |
| 2011年02月27日 21:05:21 | brett.cannon | set | status: pending -> open nosy: brett.cannon, westley.martinez messages: + msg129653 |
| 2011年02月27日 20:38:31 | brett.cannon | set | status: open -> pending nosy: + brett.cannon messages: + msg129651 |
| 2011年02月26日 20:29:59 | westley.martinez | create | |