summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/test_exc.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-01 19:25:51 (GMT)
committerGuido van Rossum <guido@python.org>2000-09-01 19:25:51 (GMT)
commit8d691c842289cf4453f282637765f07113a7cc17 (patch)
tree3a7819d53d7578cf728d3bcfecba7daebb6981db /Lib/dos-8x3/test_exc.py
parent29201d490511b2af863e07fdf5cb247fc9117c2f (diff)
downloadcpython-8d691c842289cf4453f282637765f07113a7cc17.zip
cpython-8d691c842289cf4453f282637765f07113a7cc17.tar.gz
cpython-8d691c842289cf4453f282637765f07113a7cc17.tar.bz2
The usual
Diffstat (limited to 'Lib/dos-8x3/test_exc.py')
-rwxr-xr-xLib/dos-8x3/test_exc.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/dos-8x3/test_exc.py b/Lib/dos-8x3/test_exc.py
index 7bc515c..7ee203c 100755
--- a/Lib/dos-8x3/test_exc.py
+++ b/Lib/dos-8x3/test_exc.py
@@ -19,7 +19,7 @@ def test_raise_catch(exc):
def r(thing):
test_raise_catch(thing)
- if type(thing) == ClassType:
+ if isinstance(thing, ClassType):
print thing.__name__
else:
print thing
@@ -86,6 +86,14 @@ r(SyntaxError)
try: exec '/\n'
except SyntaxError: pass
+r(IndentationError)
+
+r(TabError)
+# can only be tested under -tt, and is the only test for -tt
+#try: compile("try:\n\t1/0\n \t1/0\nfinally:\n pass\n", '<string>', 'exec')
+#except TabError: pass
+#else: raise TestFailed
+
r(SystemError)
print '(hard to reproduce)'