summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_set.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-04-18 22:57:57 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-04-18 22:57:57 (GMT)
commit35b76027f94b12911cc97f960ebbb3c137d10d2b (patch)
treeecbcfd71602342e63491934e0eb744821b602ef6 /Lib/test/test_set.py
parent9958c56eb0e2b71c1bea5abcc627899d0bed17dc (diff)
downloadcpython-35b76027f94b12911cc97f960ebbb3c137d10d2b.zip
cpython-35b76027f94b12911cc97f960ebbb3c137d10d2b.tar.gz
cpython-35b76027f94b12911cc97f960ebbb3c137d10d2b.tar.bz2
Issue 8436: set.__init__ accepts keyword args
Diffstat (limited to 'Lib/test/test_set.py')
-rw-r--r--Lib/test/test_set.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index b28022b..0c29017 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -1,3 +1,4 @@
+
import unittest
from test import test_support
import gc
@@ -47,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)