[issue13193] test_packaging and test_distutils failures under Windows
Éric Araujo
report at bugs.python.org
Mon Oct 17 14:57:07 CEST 2011
Éric Araujo <merwok at netwok.org> 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 <report at bugs.python.org>
<http://bugs.python.org/issue13193>
_______________________________________
More information about the Python-bugs-list
mailing list