[TIP] doctest and floats

Benji York benji at benjiyork.com
Tue Mar 11 07:00:31 PDT 2008

Tim Head wrote:
> It feels wrong to write
>>>> foo(0.1)
> 0.10000000000000001

doctest lets you install your own output checker that can compare the 
expected and actual output more intelligently.  For an example, see 

Benji York

More information about the testing-in-python mailing list