summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compileall.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-10 22:36:28 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-10 22:36:28 (GMT)
commit530712625bac0cb8b507746406163b66f2d36c49 (patch)
treebb239f54caca4a082e47a83cb73e408a9eb3e6ca /Lib/test/test_compileall.py
parent1eb4f28c6db5dd6362341a5f4defc09ef0e7942d (diff)
downloadcpython-530712625bac0cb8b507746406163b66f2d36c49.zip
cpython-530712625bac0cb8b507746406163b66f2d36c49.tar.gz
cpython-530712625bac0cb8b507746406163b66f2d36c49.tar.bz2
Issue #11169: compileall module uses repr() to format filenames and paths to
escape surrogate characters and show spaces.
Diffstat (limited to 'Lib/test/test_compileall.py')
-rw-r--r--Lib/test/test_compileall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py
index c1dfdb3..d1c9ee5 100644
--- a/Lib/test/test_compileall.py
+++ b/Lib/test/test_compileall.py
@@ -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():