python/dist/src/Lib/test test_heapq.py,1.15,1.16

Update of /cvsroot/python/python/dist/src/Lib/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10916/test Modified Files: test_heapq.py Log Message: Fix argument order in pure python version of nsmallest() and nlargest(). Index: test_heapq.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_heapq.py,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- test_heapq.py 28 Sep 2004 00:03:54 -0000 1.15 +++ test_heapq.py 29 Nov 2004 05:54:48 -0000 1.16 @@ -39,8 +39,11 @@ self.check_invariant(results) self.assertRaises(TypeError, heappush, []) - self.assertRaises(TypeError, heappush, None, None) - self.assertRaises(TypeError, heappop, None) + try: + self.assertRaises(TypeError, heappush, None, None) + self.assertRaises(TypeError, heappop, None) + except AttributeError: + pass def check_invariant(self, heap): # Check the heap invariant.
participants (1)
-
rhettingerīŧ users.sourceforge.net