diff --git a/Lib/test/test_modulefinder.py b/Lib/test/test_modulefinder.py index b5fdcc80c0b..4c49e9aeafc 100644 --- a/Lib/test/test_modulefinder.py +++ b/Lib/test/test_modulefinder.py @@ -316,7 +316,7 @@ class ModuleFinderTest(unittest.TestCase): self._do_test(maybe_test, debug=2, replace_paths=[(old_path, new_path)]) output = output.getvalue() - expected = "co_filename '%s' changed to '%s'" % (old_path, new_path) + expected = "co_filename %r changed to %r" % (old_path, new_path) self.assertIn(expected, output)