commit | 18d7d7a2176e169942d5764516eee6f952610884 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Fri Jul 29 18:27:44 2011 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Fri Jul 29 18:27:44 2011 -0500 |
tree | 48b4881fba56ad3052be783fd5c4cefcb503ef3c | |
parent | d83be998fcff518af95757913cd4bf071c14fbf4 [diff] [blame] |
also make NotImplementedType callable
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 @@ 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)