[Python-checkins] CVS: python/dist/src/Lib/test test_pow.py,1.7,1.8
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 12 Jul 2001 05:51:24 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv24982
Modified Files:
test_pow.py
Log Message:
Make the test pass now that 10**-15 returns a float instead of raising
an exception.
Index: test_pow.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pow.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** test_pow.py 2000/12/12 23:11:42 1.7
--- test_pow.py 2001/07/12 12:51:22 1.8
***************
*** 33,39 ****
pow(ii, jj)
except ValueError:
! pass # taking an int to a neg int power should fail
! else:
! raise ValueError, "pow(%s, %s) did not fail" % (ii, jj)
for othertype in int, long, float:
--- 33,37 ----
pow(ii, jj)
except ValueError:
! raise ValueError, "pow(%s, %s) failed" % (ii, jj)
for othertype in int, long, float: