A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2002-December/032079.html below:

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

[Python-checkins] python/nondist/sandbox/twister test_random.py,1.1,1.2Skip 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4