[issue11340] test_distutils fails because of borked compress program

2011-09-06 Thread Westley Martínez

Westley Martínez aniko...@gmail.com added the comment:

https://bugs.archlinux.org/task/25908

Looks like Allan will be taking care of this problem (eventually).  I think 
this bug can be closed.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails because of borked compress program

2011-09-06 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thank you for investigating.

--
assignee: tarek - eric.araujo
resolution: fixed - wont fix
stage:  - committed/rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails because of borked compress program

2011-09-04 Thread Westley Martínez

Westley Martínez aniko...@gmail.com added the comment:

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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails because of borked compress program

2011-04-23 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

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?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails because of borked compress program

2011-04-01 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

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?

--
components: +Distutils2
nosy: +alexis
title: test_distutils fails - test_distutils fails because of borked compress 
program
versions: +3rd party, Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails because of borked compress program

2011-04-01 Thread Westley Martínez

Westley Martínez aniko...@gmail.com added the comment:

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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-25 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Can you run “./python -m distutils.tests.test_archive_util”?  We may get more 
output.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez

Westley Martínez aniko...@gmail.com added the comment:

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]

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-25 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Okay, verbose mode does not yield more info :)

Is the compress program special on your system?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez

Westley Martínez aniko...@gmail.com added the comment:

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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-25 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

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?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez

Westley Martínez aniko...@gmail.com added the comment:

('', '', '')

:D

I'm using Arch Linux.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-25 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

:D

I know you’re using Arch, but I need a way to get that info from Python to skip 
the test.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-25 Thread Westley Martínez

Westley Martínez aniko...@gmail.com added the comment:

So how do other distros do it?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-25 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

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?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-05 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks for the report.  What is your OS name and exact version?

--
assignee:  - tarek
components: +Distutils -Tests
nosy: +eric.araujo, tarek

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-03-05 Thread Westley Martínez

Westley Martínez aniko...@gmail.com added the comment:

Arch Linux
kernel 2.6.37.2
glibc 2.13

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-02-27 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

Can you provide the test's failing report and traceback?

--
nosy: +brett.cannon
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-02-27 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

My mistake; missed the attachment.

--
status: pending - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11340] test_distutils fails

2011-02-26 Thread Westley Martínez

New submission from Westley Martínez aniko...@gmail.com:

test_compressed_deprecated failed

--
components: Tests
files: test_distutils
messages: 129588
nosy: anikom15
priority: normal
severity: normal
status: open
title: test_distutils fails
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file20923/test_distutils

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11340
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com