From: Victor Stinner Date: Sun, 24 Oct 2010 21:05:03 +0000 (+0000) Subject: Issue #10161: test_pep277 formats filenames with ascii() on error X-Git-Tag: v3.2a4~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ebe6972675d55cdbbbd2c95eeb9c483c4544371;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_pep277.py b/Lib/test/test_pep277.py index 862cdbbb864a..a7e2f007f39b 100644 --- a/Lib/test/test_pep277.py +++ b/Lib/test/test_pep277.py @@ -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):