Kaydet (Commit) 2ebe6972 authored tarafından Victor Stinner's avatar Victor Stinner

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.
üst 770a2be3
...@@ -154,7 +154,7 @@ class UnicodeFileTests(unittest.TestCase): ...@@ -154,7 +154,7 @@ class UnicodeFileTests(unittest.TestCase):
sf0 = set(normalize('NFD', f) for f in self.files) sf0 = set(normalize('NFD', f) for f in self.files)
f2 = [normalize('NFD', f) for f in f2] f2 = [normalize('NFD', f) for f in f2]
sf2 = set(os.path.join(support.TESTFN, 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)) self.assertEqual(len(f1), len(f2))
def test_rename(self): def test_rename(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment