[Python-checkins] python/nondist/sandbox/twister test_random.py,1.1,1.2
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Sat, 28 Dec 2002 13:18:10 -0800
Update of /cvsroot/python/python/nondist/sandbox/twister
In directory sc8-pr-cvs1:/tmp/cvs-serv632
Modified Files:
test_random.py
Log Message:
To accomodate single precision platforms, only test to seven digits.
Index: test_random.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/twister/test_random.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_random.py 24 Dec 2002 05:06:14 -0000 1.1
--- test_random.py 28 Dec 2002 21:18:08 -0000 1.2
***************
*** 102,106 ****
actual = self.randomlist(2000)[-10:]
for a, e in zip(actual, expected):
! self.assertEqual(round(a-e, 14), 0)
class TestModule(unittest.TestCase):
--- 102,106 ----
actual = self.randomlist(2000)[-10:]
for a, e in zip(actual, expected):
! self.assertEqual(round(a-e, 7), 0)
class TestModule(unittest.TestCase):