[issue1738] filecmp.dircmp does exact match only

Mark Lawrence report at bugs.python.org
Sun Sep 19 12:43:22 CEST 2010


Mark Lawrence <breamoreboy at yahoo.co.uk> added the comment:

Patch worked fine with 2.7.  I reworked it for SVN trunk but got this failure.

FAILED (failures=1)
Traceback (most recent call last):
  File "test_filecmp.py", line 179, in <module>
    test_main()
  File "test_filecmp.py", line 176, in test_main
    support.run_unittest(FileCompareTestCase, DirCompareTestCase)
  File "c:\py3k\lib\test\support.py", line 1128, in run_unittest
    _run_suite(suite)
  File "c:\py3k\lib\test\support.py", line 1111, in _run_suite
    raise TestFailed(err)
test.support.TestFailed: Traceback (most recent call last):
  File "test_filecmp.py", line 158, in test_dircmp_fnmatch
    self.assertEqual(d.left_list, ['file'])
AssertionError: Lists differ: ['dir-ignore', 'file', 'file.t... != ['file']

First differing element 0:
dir-ignore
file

First list contains 2 additional elements.
First extra element 1:
file

- ['dir-ignore', 'file', 'file.tmp']
+ ['file']

I've attached a py3k patch as a different pair of eyes is more likely to spot a problem.

----------
nosy: +BreamoreBoy
Added file: http://bugs.python.org/file18930/issue1738py3k.diff

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


More information about the Python-bugs-list mailing list