mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
test_pep277: format filename with ascii() on failure
"%a" instead of "%r"
This commit is contained in:
parent
74ad75405c
commit
7dae81b1ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue