You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plugin: doctestsrelated to the doctests builtin pluginstatus: needs informationreporter needs to provide more information; can be closed after 2 or more weeks of inactivitytype: bugproblem that needs to be addressed
I can't reproduce the problem though, either on master or in version 3.0.7. Could you please test using the latest version and provide a minimal reproducible example if the error still happens? Thanks!
I can reproduce the same error in pytest and also using the standard library's doctest:
""">>> import numpy as np>>> - np.log(1)0.0"""if__name__=='__main__':
importdoctestdoctest.testmod()
$python .tmp\test_doctest.py
**********************************************************************
File ".tmp\test_doctest.py", line 3, in __main__
Failed example:
- np.log(1)
Expected:
0.0
Got:
-0.0
**********************************************************************
1 items had failures:
1 of 2 in __main__
***Test Failed*** 1 failures.
pytest uses the standard doctest for test collection and comparison, so it is actually a bug in python's doctest module. I suggest to report this problem in Python's issue tracker.
pytest can't really do anything in this case, so I'm closing this.
plugin: doctestsrelated to the doctests builtin pluginstatus: needs informationreporter needs to provide more information; can be closed after 2 or more weeks of inactivitytype: bugproblem that needs to be addressed
Activity
nicoddemus commentedon Sep 25, 2017
Thanks @mirca.
I can't reproduce the problem though, either on
masteror in version3.0.7. Could you please test using the latest version and provide a minimal reproducible example if the error still happens? Thanks!mirca commentedon Sep 26, 2017
I tested with version
3.2.1as well and got the same error:where
test.pyis:nicoddemus commentedon Sep 26, 2017
Thanks @mirca for the reproducible example.
I can reproduce the same error in pytest and also using the standard library's
doctest:pytest uses the standard
doctestfor test collection and comparison, so it is actually a bug in python'sdoctestmodule. I suggest to report this problem in Python's issue tracker.pytest can't really do anything in this case, so I'm closing this.
mirca commentedon Sep 26, 2017
@nicoddemus Thanks for following up on this.
nicoddemus commentedon Sep 26, 2017
No problem 👍