[issue13170] distutils2 test failures

Éric Araujo report at bugs.python.org
Thu Oct 13 18:37:17 CEST 2011


New submission from Éric Araujo <merwok at netwok.org>:

I get three errors/failures on linux3:

ERROR: test_simple_run (distutils2.tests.test_command_install_data.InstallDataTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "distutils2/tests/test_command_install_data.py", line 76, in test_simple_run
    cmd.run()
  File "distutils2/command/install_data.py", line 50, in run
    out = self.copy_file(_file[0], dir_dest)[0]
  File "distutils2/command/cmd.py", line 378, in copy_file
    copyfile(infile, outfile)
  File "distutils2/_backport/shutil.py", line 83, in copyfile
    raise Error("`%s` and `%s` are the same file" % (src, dst))
Error: `/tmp/user/1013/tmpEl9F8m/tmp91wrrV/foo/inst/three` and `/tmp/user/1013/tmpEl9F8m/tmp91wrrV/foo/inst/three` are the same file

======================================================================
FAIL: test_config (distutils2.tests.test_config.ConfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "distutils2/tests/test_config.py", line 291, in test_config
    self.assertEqual(dist.package_data, {'cheese': 'data/templates/*'})
AssertionError: {u'cheese': [u'data/templates/*']} != {'cheese': 'data/templates/*'}
- {u'cheese': [u'data/templates/*']}
?  -          --                  -

+ {'cheese': 'data/templates/*'}

======================================================================
FAIL: test_parse_extensions_in_config (distutils2.tests.test_config.ConfigTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "distutils2/tests/test_config.py", line 341, in test_parse_extensions_in_config
    self.assertEqual(ext.sources, ['c_src/speed_coconuts.c'])
AssertionError: Lists differ: ['c\x00\x00\x00_\x00\x00\x00s\... != ['c_src/speed_coconuts.c']

First differing element 0:
c_src/speed_coconuts.c
c_src/speed_coconuts.c

- ['c\x00\x00\x00_\x00\x00\x00s\x00\x00\x00r\x00\x00\x00c\x00\x00\x00/\x00\x00\x00s\x00\x00\x00p\x00\x00\x00e\x00\x00\x00e\x00\x00\x00d\x00\x00\x00_\x00\x00\x00c\x00\x00\x00o\x00\x00\x00c\x00\x00\x00o\x00\x00\x00n\x00\x00\x00u\x00\x00\x00t\x00\x00\x00s\x00\x00\x00.\x00\x00\x00c\x00\x00\x00']
+ ['c_src/speed_coconuts.c']

The last one looks like a codecs issue.

----------
assignee: tarek
components: Distutils2
messages: 145470
nosy: alexis, eric.araujo, tarek
priority: normal
severity: normal
status: open
title: distutils2 test failures
versions: 3rd party

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13170>
_______________________________________


More information about the Python-bugs-list mailing list