Zé Vinícius added the comment:
Hi R. David Murray,
doctest compares strings, so "-0.0" is not the same as "0.0" to doctest
Thank you. That explains why "-0.0 == 0.0" is True to Python, but False to
doctest.
Cheers,
Zé
On Tue, Sep 26, 2017 at 5:35 PM, R. Davi
New submission from Zé Vinícius:
See https://github.com/pytest-dev/pytest/issues/2796#event-1266625358
--
messages: 303081
nosy: Zé Vinícius
priority: normal
severity: normal
status: open
title: bug in doctest when comparing - 0.0 == 0.0
___
Python