-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Possible bug in pytest --doctest comparison #2796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @mirca. I can't reproduce the problem though, either on |
I tested with version
where
|
Thanks @mirca for the reproducible example. I can reproduce the same error in pytest and also using the standard library's """
>>> import numpy as np
>>> - np.log(1)
0.0
"""
if __name__ == '__main__':
import doctest
doctest.testmod()
pytest uses the standard pytest can't really do anything in this case, so I'm closing this. |
@nicoddemus Thanks for following up on this. |
No problem 👍 |
In Python:
Whereas while running
pytest --doctest-modules
(version3.0.7
):The text was updated successfully, but these errors were encountered: