summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/test_exc.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-06 20:19:59 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-06 20:19:59 (GMT)
commita11ccccd249c201df0224c84bbaacdb31496aa5b (patch)
treed5a3ed51586cbe829775209fa49f469935332782 /Lib/dos-8x3/test_exc.py
parentd57548023fa61918e545c0c808625df4f43e6ad4 (diff)
downloadcpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.zip
cpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.tar.gz
cpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.tar.bz2
The usual (and some new modules).
Diffstat (limited to 'Lib/dos-8x3/test_exc.py')
-rwxr-xr-xLib/dos-8x3/test_exc.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/dos-8x3/test_exc.py b/Lib/dos-8x3/test_exc.py
index 4fbee3e..dbcdbe8 100755
--- a/Lib/dos-8x3/test_exc.py
+++ b/Lib/dos-8x3/test_exc.py
@@ -1,11 +1,16 @@
# Python test set -- part 5, built-in exceptions
from test_support import *
+from types import ClassType
print '5. Built-in exceptions'
# XXX This is not really enough, each *operation* should be tested!
-def r(name): print name
+def r(thing):
+ if type(thing) == ClassType:
+ print thing.__name__
+ else:
+ print thing
r(AttributeError)
import sys