[Python-ideas] float comparison in doctest

Kevin Davies daviesk24 at yahoo.com
Mon Aug 11 18:25:31 CEST 2014


Erik Bray has created a nifty addition to doctest to compare floating 
point numbers using a `+FLOAT_CMP` flag. It is implemented within 
Astropy (http://www.astropy.org/) and the related issue is 
https://github.com/astropy/astropy/issues/2662. According to Erik, it 
may need some tweaks, but I think it would be a really useful feature to 
make available in the doctest package itself.

Kevin


More information about the Python-ideas mailing list