summaryrefslogtreecommitdiff
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-05-25 23:16:54 +0000
committerBarry Warsaw <barry@python.org>2000-05-25 23:16:54 +0000
commit2ff16f10bc12d0b6f17b114beacfcceebabb4325 (patch)
treed40f64b4af1e7d94efab4c93a09391c0177f419d /Lib/test/test_exceptions.py
parent6574ce7726b7dce3e811afbf6747ce965751e71b (diff)
downloadcpython-2ff16f10bc12d0b6f17b114beacfcceebabb4325.tar.gz
Added a test to catch the base class.
Diffstat (limited to 'Lib/test/test_exceptions.py')
-rw-r--r--Lib/test/test_exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py
index 9796ef4e69..d172ecd153 100644
--- a/Lib/test/test_exceptions.py
+++ b/Lib/test/test_exceptions.py
@@ -94,4 +94,8 @@ r(ZeroDivisionError)
try: x = 1/0
except ZeroDivisionError: pass
+r(Exception)
+try: x = 1/0
+except Exception, e: pass
+
unlink(TESTFN)