unittest: Proposal to add failUnlessNear

Antoon Pardon apardon at forel.vub.ac.be
Tue Jul 20 08:18:36 EDT 2004


Op 2004-07-20, Jeff Epler schreef <jepler at unpythonic.net>:
>
> --TB36FDmn/VVEgNH/
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
>
>> Op 2004-07-19, Jeff Epler schreef <jepler at unpythonic.net>:
>> > and especially about how to choose "tolerance" properly.
>
> On Tue, Jul 20, 2004 at 07:32:53AM +0000, Antoon Pardon wrote:
>> Sorry, but that would require a course in numerical
>> analysis.
>
> Oh, that's too bad.  I bet this will end up being misused by a lot of
> pepole, then, because few of us have had courses in numerical analysis.

Well then I suspect that assertAlmostEqual, is being missued by a lot
of people, because properly choosing the right number of places to round to,
is about the same difficulty as properly choosing a tolerance.

-- 
Antoon Pardon



More information about the Python-list mailing list