diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 657cbc53270..77a6018f361 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -300,7 +300,7 @@ class ExceptionTests(unittest.TestCase): got = repr(getattr(new, checkArgName)) want = repr(expected[checkArgName]) self.assertEquals(got, want, - 'pickled "%r", attribute "%s' % + 'pickled "%r", attribute "%s"' % (e, checkArgName)) def testSlicing(self):