[issue13193] test_packaging and test_distutils failures under Windows

2011-10-20 Thread Nadeem Vawda

Nadeem Vawda  added the comment:

Issue 13230 (closed as duplicate) reports another Linux failure in 
test_resources.

Changing the title, since it isn't Windows-specific.

--
nosy: +anikom15
stage:  -> needs patch

___
Python tracker 

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



[issue13193] test_packaging and test_distutils failures under Windows

2011-10-19 Thread Florent Xicluna

Changes by Florent Xicluna :


--
nosy: +flox

___
Python tracker 

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



[issue13193] test_packaging and test_distutils failures under Windows

2011-10-19 Thread Nadeem Vawda

Nadeem Vawda  added the comment:

> The test creates a temporary directory which is inserted at the head of 
> sys.path.
> packaging.database.get_distribution should thus find Spamlib-0.1.dist-info.
> Can someone with a Windows install help me with this?  Printing sys.path and
> os.listdir(sys.path[0]) would be a good start.

test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase) ...
sys.path: ['c:\\users\\nadeem\\appdata\\local\\temp\\tmpi7pf1f\\tmp4gdwnp',
   '',
   
'C:\\Users\\Nadeem\\Code\\python3\\python\\PCbuild\\python33_d.zip',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\DLLs',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\lib',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\PCbuild',
   
'C:\\Users\\Nadeem\\AppData\\Roaming\\Python\\Python33\\site-packages',
   'C:\\Users\\Nadeem\\Code\\python3\\python',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\lib\\site-packages']
os.listdir(sys.path[0]): ['Spamlib-0.1.dist-info']
ERROR

I noticed that the test succeeds if you run only the InstallDataTestCase (with
"... -v -m InstallDataTestCase test_packaging"), but the sys.path info for this
case is the same as before (modulo the name of the temp directory):

test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase) ...
sys.path: ['c:\\users\\nadeem\\appdata\\local\\temp\\tmpddi17y\\tmp1mnv9z',
   '',
   
'C:\\Users\\Nadeem\\Code\\python3\\python\\PCbuild\\python33_d.zip',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\DLLs',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\lib',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\PCbuild',
   
'C:\\Users\\Nadeem\\AppData\\Roaming\\Python\\Python33\\site-packages',
   'C:\\Users\\Nadeem\\Code\\python3\\python',
   'C:\\Users\\Nadeem\\Code\\python3\\python\\lib\\site-packages']
os.listdir(sys.path[0]): ['Spamlib-0.1.dist-info']
ok

Additionally, I've been getting a similar failure on my Ubuntu machine:

==
ERROR: test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase)
--
Traceback (most recent call last):
  File 
"/home/nadeem/code/src/cpython/def/Lib/packaging/tests/test_command_install_data.py",
 line 129, in test_resources
with packaging.database.get_file('Spamlib', 'spamd') as fp:
  File "/home/nadeem/code/src/cpython/def/Lib/packaging/database.py", line 
649, in get_file
return open(get_file_path(distribution_name, relative_path),
  File "/home/nadeem/code/src/cpython/def/Lib/packaging/database.py", line 
644, in get_file_path
raise LookupError('no distribution named %r found' % distribution_name)
LookupError: no distribution named 'Spamlib' found

Output from Ubuntu machine:

test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase) ...
sys.path: ['/tmp/tmpubkdye/tmpdmdybx',
   '',
   '/usr/local/lib/python33.zip',
   '/home/nadeem/code/src/cpython/def/Lib',
   '/home/nadeem/code/src/cpython/def/Lib/plat-linux',
   '/home/nadeem/code/src/cpython/def/build/lib.linux-x86_64-3.3',
   '/home/nadeem/.local/lib/python3.3/site-packages',
   '/usr/local/lib/python3.3/site-packages']
os.listdir(sys.path[0]): ['Spamlib-0.1.dist-info']
ERROR

--
nosy: +nadeem.vawda

___
Python tracker 

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



[issue13193] test_packaging and test_distutils failures under Windows

2011-10-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Similar test failure under x86 OpenIndiana:

==
ERROR: test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase)
--
Traceback (most recent call last):
  File 
"/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_command_install_data.py",
 line 129, in test_resources
with packaging.database.get_file('Spamlib', 'spamd') as fp:
  File 
"/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/database.py",
 line 649, in get_file
return open(get_file_path(distribution_name, relative_path),
  File 
"/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/database.py",
 line 644, in get_file_path
raise LookupError('no distribution named %r found' % distribution_name)
LookupError: no distribution named 'Spamlib' found

http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.x/builds/2153/steps/test/logs/stdio

--

___
Python tracker 

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



[issue13193] test_packaging and test_distutils failures under Windows

2011-10-17 Thread Paul Moore

Paul Moore  added the comment:

First one - the problem is in packaging.manifest._translate_pattern, which uses 
os.path.join on regex parts. That won't work on Windows where os.sep is a 
backslash, as the backslash is a RE metacharacter.

Actually, the file list seems to only use '/' as a path separator, so you can 
just use

pattern_re = "^" + prefix_re + '/' + ".*" + pattern_re

Whether this is right or not depends on whether the test is correctly supplying 
the expected file list as always /-separated. I don't know enough to be certain 
on that. An alternative would be to use '[/\\]' in the above, to catch both / 
and \ separators. Technically wrong, but robust enough to do for now if needed.

--

___
Python tracker 

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



[issue13193] test_packaging and test_distutils failures under Windows

2011-10-17 Thread Paul Moore

Paul Moore  added the comment:

I'm not getting the second error on my home PC. As the failing buildbot is 
mine, I'll have a look on there to see if I can reproduce when I get the chance.

--

___
Python tracker 

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



[issue13193] test_packaging and test_distutils failures under Windows

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

The first failure looks like a bug in the manifest recursive-include code:

FAIL: test_process_template (distutils.tests.test_filelist.FileListTestCase)
--
Traceback (most recent call last):
  File "distutils\tests\test_filelist.py", line 181, in test_process_template
self.assertEqual(file_list.files, ['d/b.py', 'd/d/e.py'])
AssertionError: Lists differ: [] != ['d/b.py', 'd/d/e.py']


The second one may be a sys.path issue:

ERROR: test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase)
--
Traceback (most recent call last):
  File "packaging\tests\test_command_install_data.py", line 129, in 
test_resources
with packaging.database.get_file('Spamlib', 'spamd') as fp:
  File "packaging\database.py", line 649, in get_file
return open(get_file_path(distribution_name, relative_path),
  File "packaging\database.py", line 644, in get_file_path
raise LookupError('no distribution named %r found' % distribution_name)
LookupError: no distribution named 'Spamlib' found

The test creates a temporary directory which is inserted at the head of 
sys.path.  packaging.database.get_distribution should thus find 
Spamlib-0.1.dist-info.  Can someone with a Windows install help me with this?  
Printing sys.path and os.listdir(sys.path[0]) would be a good start.

--
nosy: +higery, jlove, pmoore

___
Python tracker 

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



[issue13193] test_packaging and test_distutils failures under Windows

2011-10-16 Thread Antoine Pitrou

New submission from Antoine Pitrou :

http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.x/builds/3593/steps/test/logs/stdio

--
assignee: tarek
components: Distutils, Distutils2, Library (Lib), Tests
messages: 145643
nosy: alexis, eric.araujo, pitrou, tarek
priority: high
severity: normal
status: open
title: test_packaging and test_distutils failures under Windows
type: behavior
versions: Python 3.2, Python 3.3

___
Python tracker 

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