[Python-checkins] CVS: python/dist/src/Lib/test test_long.py,1.15,1.16 test_pow.py,1.13,1.14
Neal Norwitz
nnorwitz@users.sourceforge.net
Mon, 01 Apr 2002 11:01:42 -0800
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv4714
Modified Files:
test_long.py test_pow.py
Log Message:
Format strings (tuples,) appropriately
Index: test_long.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_long.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** test_long.py 5 Sep 2001 00:53:44 -0000 1.15
--- test_long.py 1 Apr 2002 19:01:39 -0000 1.16
***************
*** 327,331 ****
else:
raise TestFailed("pow%r should have raised "
! "TypeError" % ((longx, longy, long(z))))
# ---------------------------------------- tests of long->float overflow
--- 327,331 ----
else:
raise TestFailed("pow%r should have raised "
! "TypeError" % ((longx, longy, long(z)),))
# ---------------------------------------- tests of long->float overflow
Index: test_pow.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_pow.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_pow.py 4 Sep 2001 06:37:28 -0000 1.13
--- test_pow.py 1 Apr 2002 19:01:39 -0000 1.14
***************
*** 71,76 ****
pass
else:
! raise TestFailed("expected TypeError from "
! "pow%r" % ((type(i), j, k)))
continue
if compare(pow(type(i),j,k), pow(type(i),j)% type(k)):
--- 71,76 ----
pass
else:
! raise ValueError, "expected TypeError from " + \
! "pow%r" % ((type(i), j, k),)
continue
if compare(pow(type(i),j,k), pow(type(i),j)% type(k)):