diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-07-29 23:27:44 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-07-29 23:27:44 (GMT) |
commit | 18d7d7a2176e169942d5764516eee6f952610884 (patch) | |
tree | 48b4881fba56ad3052be783fd5c4cefcb503ef3c /Lib/test/test_builtin.py | |
parent | d83be998fcff518af95757913cd4bf071c14fbf4 (diff) | |
download | cpython-18d7d7a2176e169942d5764516eee6f952610884.zip cpython-18d7d7a2176e169942d5764516eee6f952610884.tar.gz cpython-18d7d7a2176e169942d5764516eee6f952610884.tar.bz2 |
also make NotImplementedType callable
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r-- | Lib/test/test_builtin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index 145ae69..4e33c23 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py @@ -1344,7 +1344,7 @@ class BuiltinTest(unittest.TestCase): self.assertRaises(TypeError, x.translate, b"1"*256, 1) def test_construct_singletons(self): - for const in None, Ellipsis: + for const in None, Ellipsis, NotImplemented: tp = type(const) self.assertIs(tp(), const) self.assertRaises(TypeError, tp, 1, 2) |