summaryrefslogtreecommitdiffstats
path: root/Lib/test/output
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-03 20:24:09 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-03 20:24:09 (GMT)
commit602d45194c94a2e60becfb8aac768367412960c6 (patch)
tree68eb4eccb6f555a1cf7e387ff550547b0dc2516f /Lib/test/output
parent99dba27e9a671693710128c0cfb5ed6686cda79b (diff)
downloadcpython-602d45194c94a2e60becfb8aac768367412960c6.zip
cpython-602d45194c94a2e60becfb8aac768367412960c6.tar.gz
cpython-602d45194c94a2e60becfb8aac768367412960c6.tar.bz2
Add a custom __str__ method to KeyError that applies repr() to the
missing key. (Also added a guard to SyntaxError__str__ to prevent calling PyString_Check(NULL).)
Diffstat (limited to 'Lib/test/output')
-rw-r--r--Lib/test/output/test_exceptions2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/output/test_exceptions b/Lib/test/output/test_exceptions
index e1e146a..28a7aa8 100644
--- a/Lib/test/output/test_exceptions
+++ b/Lib/test/output/test_exceptions
@@ -10,7 +10,7 @@ spam
ImportError
spam
IndexError
-spam
+'spam'
KeyError
spam
KeyboardInterrupt