[Python-checkins] CVS: python/dist/src/Lib/test test_math.py,1.4,1.5
Peter Schneider-Kamp
python-dev@python.org
Wed, 9 Aug 2000 21:23:32 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv20310/Lib/test
Modified Files:
test_math.py
Log Message:
remove all occurence of math.rint() from the sources
(and yes, "Currintly" also counts <0.5 wink>)
Index: test_math.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_math.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** test_math.py 2000/06/01 17:59:17 1.4
--- test_math.py 2000/08/10 04:23:30 1.5
***************
*** 130,145 ****
testit('pow(2,-1)', math.pow(2,-1), 0.5)
- print 'rint'
- try:
- math.rint
- except AttributeError:
- # this platform does not have rint, that is fine, skip the test
- pass
- else:
- testit('rint(0.7)', math.rint(0.7), 1)
- testit('rint(-0.3)', math.rint(-0.3), 0)
- testit('rint(2.5)', math.rint(2.5), 2)
- testit('rint(3.5)', math.rint(3.5), 4)
-
print 'sin'
testit('sin(0)', math.sin(0), 0)
--- 130,133 ----