diff options
Diffstat (limited to 'Lib/dos-8x3/test_exc.py')
-rwxr-xr-x | Lib/dos-8x3/test_exc.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/dos-8x3/test_exc.py b/Lib/dos-8x3/test_exc.py index 4fbee3e76a1..dbcdbe80970 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 |