Issue 8436: set.__init__ accepts keyword args

This commit is contained in:
Raymond Hettinger 2010-04-18 23:05:22 +00:00
parent 2db462dc69
commit 3fb156caa4
2 changed files with 3 additions and 0 deletions

View file

@ -48,6 +48,7 @@ class TestJointOps(unittest.TestCase):
def test_new_or_init(self):
self.assertRaises(TypeError, self.thetype, [], 2)
self.assertRaises(TypeError, set().__init__, a=1)
def test_uniquification(self):
actual = sorted(self.s)