[Python-checkins] python/dist/src/Lib/test test_builtin.py,1.15,1.16

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Tue, 15 Apr 2003 07:40:08 -0700


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

Modified Files:
	test_builtin.py 
Log Message:
test_range():  The C code changed to raise TypeError in one of these
cases, but the test still expected ValueError.  Repaired that.


Index: test_builtin.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_builtin.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** test_builtin.py	11 Apr 2003 18:43:05 -0000	1.15
--- test_builtin.py	15 Apr 2003 14:40:03 -0000	1.16
***************
*** 963,967 ****
          # Reject floats when it would require PyLongs to represent.
          # (smaller floats still accepted, but deprecated)
!         self.assertRaises(ValueError, range, 1e100, 1e101, 1e101)
  
      def test_input_and_raw_input(self):
--- 963,967 ----
          # Reject floats when it would require PyLongs to represent.
          # (smaller floats still accepted, but deprecated)
!         self.assertRaises(TypeError, range, 1e100, 1e101, 1e101)
  
      def test_input_and_raw_input(self):