compileall uses repr() to format filenames/paths

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-02-21 20:58:02 +00:00
parent fd34b3788f
commit 441cc01e0f
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():