diff options
author | Raymond Hettinger <python@rcn.com> | 2010-04-18 22:59:34 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-04-18 22:59:34 (GMT) |
commit | efa19849ce8ee11cc005af35b1cbfac0eaeb2a49 (patch) | |
tree | dc40f96843b53cf8d1f4966bc05eaf9528b13208 /Lib | |
parent | a23bccee075df412e734c6261e9507979f388197 (diff) | |
download | cpython-efa19849ce8ee11cc005af35b1cbfac0eaeb2a49.zip cpython-efa19849ce8ee11cc005af35b1cbfac0eaeb2a49.tar.gz cpython-efa19849ce8ee11cc005af35b1cbfac0eaeb2a49.tar.bz2 |
Issue 8436: set.__init__ accepts keyword args
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_set.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py index 8a5f660..d53b916 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 @@ -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) |