commit | 19c2d77842290af9b5f470c1eea2a71d1f77c9fe | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri Nov 21 18:36:54 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Fri Nov 21 18:36:54 2003 +0000 |
tree | b803a0c96878f6bbef74c8f306df3e950f63da62 | |
parent | 3fbec701cae361de6beca55bc926e0540635f165 [diff] |
Allow temporary hashability for the __contains__ test. (Requested by Alex Martelli.)
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py index c33461d..3203d51 100644 --- a/Lib/test/test_set.py +++ b/Lib/test/test_set.py
@@ -35,6 +35,8 @@ 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()