]> granicus.if.org Git - python/commitdiff
Issue #10161: test_pep277 formats filenames with ascii() on error
authorVictor Stinner <victor.stinner@haypocalc.com>
Sun, 24 Oct 2010 21:05:03 +0000 (21:05 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Sun, 24 Oct 2010 21:05:03 +0000 (21:05 +0000)
As suggested by Antoine, it's better to patch only test_pep277 than the
unittest module.

Lib/test/test_pep277.py

index 862cdbbb864a927f6012fceaf4abd04ac15caead..a7e2f007f39bd53d241108ee0da8072eb3d9d0b3 100644 (file)
@@ -154,7 +154,7 @@ class UnicodeFileTests(unittest.TestCase):
             sf0 = set(normalize('NFD', f) for f in self.files)
             f2 = [normalize('NFD', f) for f in f2]
         sf2 = set(os.path.join(support.TESTFN, f) for f in f2)
-        self.assertEqual(sf0, sf2)
+        self.assertEqual(sf0, sf2, "%a != %a" % (sf0, sf2))
         self.assertEqual(len(f1), len(f2))
 
     def test_rename(self):