test_pep277: format filename with ascii() on failure

"%a" instead of "%r"
This commit is contained in:
Victor Stinner 2010-10-28 11:11:24 +00:00
parent 74ad75405c
commit 7dae81b1ff
1 changed files with 1 additions and 1 deletions

View File

@ -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):