mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
test_pep277: format function argument with ascii() on failure
"%a" instead of "%r"
This commit is contained in:
parent
3be00037d6
commit
74ad75405c
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ class UnicodeFileTests(unittest.TestCase):
|
|||
if isinstance(exc_filename, bytes):
|
||||
filename = filename.encode(sys.getfilesystemencoding())
|
||||
if check_fn_in_exception:
|
||||
self.assertEqual(exc_filename, filename, "Function '%s(%r) failed "
|
||||
self.assertEqual(exc_filename, filename, "Function '%s(%a) failed "
|
||||
"with bad filename in the exception: %r" %
|
||||
(fn.__name__, filename, exc_filename))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue