[Python-checkins] r85829 - python/branches/py3k/Lib/test/test_pep277.py

victor.stinner python-checkins at python.org
Sun Oct 24 23:05:04 CEST 2010


Author: victor.stinner
Date: Sun Oct 24 23:05:03 2010
New Revision: 85829

Log:
Issue #10161: test_pep277 formats filenames with ascii() on error

As suggested by Antoine, it's better to patch only test_pep277 than the
unittest module.


Modified:
   python/branches/py3k/Lib/test/test_pep277.py

Modified: python/branches/py3k/Lib/test/test_pep277.py
==============================================================================
--- python/branches/py3k/Lib/test/test_pep277.py	(original)
+++ python/branches/py3k/Lib/test/test_pep277.py	Sun Oct 24 23:05:03 2010
@@ -154,7 +154,7 @@
             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):


More information about the Python-checkins mailing list