Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3760 by [email protected]: unskip doctests which output floats
http://code.google.com/p/sympy/issues/detail?id=3760

All doctests which are skipped because they output floating point numbers should be unSKIPed (see https://github.com/sympy/sympy/pull/1901#issuecomment-15089287)

I propose two solutions to this problem:

1) Add float_abs_tol and float_rel_tol kwargs to the doctest_depends_on decorator. Furthermore, subclass OutputChecker (from the doctest module) s.t. it parses all floating point numbers in the the 'got' and 'expected' strings. These floats should then be compared according to the specified tolerance.

2) register a custom SYMPY_FLOAT_TOL doctest option and add this option to all docstring examples which output floats. I don't know if its possible to pass a argument to a registered doctest option like SYMPY_FLOAT_TOL=1e-3





--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to