mirror of
https://github.com/python/cpython.git
synced 2025-08-19 08:11:46 +00:00
Issue 8436: set.__init__ accepts keyword args
This commit is contained in:
parent
a23bccee07
commit
efa19849ce
2 changed files with 4 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
|
||||
import unittest
|
||||
from test import test_support
|
||||
import gc
|
||||
|
@ -48,6 +49,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue