[Python-checkins] python/nondist/sandbox/twister test_random.py,1.1,1.2

Skip Montanaro skip@pobox.com
Sat, 28 Dec 2002 22:11:50 -0600


    Raymond> To accomodate single precision platforms, only test to seven
    Raymond> digits.

The SciPy folks have added an assertAlmostEqual method to their unit tests.
I believe it more-or-less just wraps what you've done in a callable method
(which takes a number of digits of precision).  Might be a good idea to add
something like it to unittest.py so the wheel doesn't keep getting
reinvented.  They actually have a few variants, coded as functions here:

    http://www.scipy.org/site_content/remap?rmurl=http%3A//scipy.net/cgi-bin/viewcvsx.cgi/scipy/scipy_test/testing.py

Skip