summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-09-28 01:51:35 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-09-28 01:51:35 (GMT)
commit6429a4727e4bb8bcb0d3deefaefe195e63e6bb6e (patch)
treec7b2a929436e44c3678b83c8da7a6e3c7f80c948 /Lib
parentb6f7fb7327a80ff976bba3a5e982b06a39dcf87c (diff)
downloadcpython-6429a4727e4bb8bcb0d3deefaefe195e63e6bb6e.zip
cpython-6429a4727e4bb8bcb0d3deefaefe195e63e6bb6e.tar.gz
cpython-6429a4727e4bb8bcb0d3deefaefe195e63e6bb6e.tar.bz2
Use Py_CLEAR(). Add unrelated test.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_set.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index 01dded6..aab0c57 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -23,6 +23,9 @@ class TestJointOps(unittest.TestCase):
self.s = self.thetype(word)
self.d = dict.fromkeys(word)
+ def test_new_or_init(self):
+ self.assertRaises(TypeError, self.thetype, [], 2)
+
def test_uniquification(self):
actual = sorted(self.s)
expected = sorted(self.d)