From 19c2d77842290af9b5f470c1eea2a71d1f77c9fe Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 21 Nov 2003 18:36:54 +0000 Subject: Allow temporary hashability for the __contains__ test. (Requested by Alex Martelli.) --- Lib/test/test_set.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/test/test_set.py') diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py index c33461d7dd..3203d51693 100644 --- a/Lib/test/test_set.py +++ b/Lib/test/test_set.py @@ -35,6 +35,8 @@ class TestJointOps(unittest.TestCase): for c in self.letters: self.assertEqual(c in self.s, c in self.d) self.assertRaises(TypeError, self.s.__contains__, [[]]) + s = self.thetype([frozenset(self.letters)]) + self.assert_(self.thetype(self.letters) in s) def test_copy(self): dup = self.s.copy() -- cgit v1.2.1