[Python-checkins] python/dist/src/Lib/test test_sets.py,1.17,1.18

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Mon, 25 Nov 2002 12:43:58 -0800


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

Modified Files:
	test_sets.py 
Log Message:
SF 643115:  Set._update() had a special case for dictionaries which allowed
non-true values to leak in.  This threw-off equality testing which depends
on the underlying dictionaries having both the same keys and values.



Index: test_sets.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sets.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** test_sets.py	13 Nov 2002 22:00:02 -0000	1.17
--- test_sets.py	25 Nov 2002 20:43:55 -0000	1.18
***************
*** 180,183 ****
--- 180,186 ----
          self.set = Set((2, 4, 6))
  
+     def test_eq(self):              # SF bug 643115
+         self.assertEqual(self.set, Set({2:1,4:3,6:5}))
+ 
      def test_union_subset(self):
          result = self.set | Set([2])