Commit 7dae81b1 authored by Victor Stinner's avatar Victor Stinner

test_pep277: format filename with ascii() on failure

"%a" instead of "%r"
parent 74ad7540
......@@ -99,7 +99,7 @@ class UnicodeFileTests(unittest.TestCase):
filename = filename.encode(sys.getfilesystemencoding())
if check_fn_in_exception:
self.assertEqual(exc_filename, filename, "Function '%s(%a) failed "
"with bad filename in the exception: %r" %
"with bad filename in the exception: %a" %
(fn.__name__, filename, exc_filename))
def test_failures(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