diff options
author | Guido van Rossum <guido@python.org> | 2001-12-11 04:37:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-12-11 04:37:34 (GMT) |
commit | 29d260670eff2d04b98d737ad14928163602a41a (patch) | |
tree | 6cc40f6d54623d96e5784f573c7189742b14b129 /Lib/test/test_types.py | |
parent | 2a64f4693ddcd552c4c6e709eaaba7cf829464d8 (diff) | |
download | cpython-29d260670eff2d04b98d737ad14928163602a41a.zip cpython-29d260670eff2d04b98d737ad14928163602a41a.tar.gz cpython-29d260670eff2d04b98d737ad14928163602a41a.tar.bz2 |
Additional coverage tests by Neil Norwitz.
(SF patch #491418, #491420, #491421.)
Diffstat (limited to 'Lib/test/test_types.py')
-rw-r--r-- | Lib/test/test_types.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index 2ea0c6b..e6f440f 100644 --- a/Lib/test/test_types.py +++ b/Lib/test/test_types.py @@ -389,3 +389,12 @@ for copymode in -1, +1: str(ta), str(tb)) if a: raise TestFailed, 'a not empty after popitems: %s' % str(a) if b: raise TestFailed, 'b not empty after popitems: %s' % str(b) + +try: type(1, 2) +except TypeError: pass +else: raise TestFailed, 'type(), w/2 args expected TypeError' + +try: type(1, 2, 3, 4) +except TypeError: pass +else: raise TestFailed, 'type(), w/4 args expected TypeError' + |