test_pep277: format filename with ascii() on failure
"%a" instead of "%r"
This commit is contained in:
parent
74ad75405c
commit
7dae81b1ff
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue