[Python-checkins] python/dist/src/Lib/test test_set.py,1.3,1.4

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri Nov 21 13:36:57 EST 2003


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv20320/Lib/test

Modified Files:
	test_set.py 
Log Message:
Allow temporary hashability for the __contains__ test.
(Requested by Alex Martelli.)



Index: test_set.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_set.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_set.py	21 Nov 2003 07:56:36 -0000	1.3
--- test_set.py	21 Nov 2003 18:36:54 -0000	1.4
***************
*** 36,39 ****
--- 36,41 ----
              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):





More information about the Python-checkins mailing list