summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-07-29 23:27:44 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-07-29 23:27:44 (GMT)
commit18d7d7a2176e169942d5764516eee6f952610884 (patch)
tree48b4881fba56ad3052be783fd5c4cefcb503ef3c /Lib
parentd83be998fcff518af95757913cd4bf071c14fbf4 (diff)
downloadcpython-18d7d7a2176e169942d5764516eee6f952610884.zip
cpython-18d7d7a2176e169942d5764516eee6f952610884.tar.gz
cpython-18d7d7a2176e169942d5764516eee6f952610884.tar.bz2
also make NotImplementedType callable
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_builtin.py2
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)