diff options
Diffstat (limited to 'Lib/test/test_syntax.py')
-rw-r--r-- | Lib/test/test_syntax.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index a40190e..4838608 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -18,7 +18,7 @@ class SyntaxTestCase(unittest.TestCase): except SyntaxError, err: mo = re.search(errtext, str(err)) if mo is None: - self.fail("SyntaxError did not contain '%s'" % `errtext`) + self.fail("SyntaxError did not contain '%r'" % (errtext,)) else: self.fail("compile() did not raise SyntaxError") |