Issue #11169: compileall module uses repr() to format filenames and paths to

escape surrogate characters and show spaces.
This commit is contained in:
Victor Stinner 2011-05-11 00:36:28 +02:00
parent 1eb4f28c6d
commit 530712625b
3 changed files with 9 additions and 6 deletions

View file

@ -345,7 +345,7 @@ class CommandLineTests(unittest.TestCase):
def test_invalid_arg_produces_message(self):
out = self.assertRunOK('badfilename')
self.assertRegex(out, b"Can't list badfilename")
self.assertRegex(out, b"Can't list 'badfilename'")
def test_main():