diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-24 21:05:03 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-24 21:05:03 (GMT) |
commit | 2ebe6972675d55cdbbbd2c95eeb9c483c4544371 (patch) | |
tree | 6e109ebbc97b7b230149b07e7404a848ba5e1395 /Lib/test/test_pep277.py | |
parent | 770a2be364706fdfde6a4d1282e32a4ddea76071 (diff) | |
download | cpython-2ebe6972675d55cdbbbd2c95eeb9c483c4544371.zip cpython-2ebe6972675d55cdbbbd2c95eeb9c483c4544371.tar.gz cpython-2ebe6972675d55cdbbbd2c95eeb9c483c4544371.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_pep277.py')
-rw-r--r-- | Lib/test/test_pep277.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pep277.py b/Lib/test/test_pep277.py index 862cdbb..a7e2f00 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): |