[issue31599] bug in doctest when comparing - 0.0 == 0.0

2017-09-26 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue31599] bug in doctest when comparing - 0.0 == 0.0

2017-09-26 Thread Zé Vinícius
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. David Murray wrote: > > R. David Murr

[issue31599] bug in doctest when comparing - 0.0 == 0.0

2017-09-26 Thread R. David Murray
R. David Murray added the comment: To be clear: doctest compares strings, so "-0.0" is not the same as "0.0" to doctest. -- ___ Python tracker ___ _

[issue31599] bug in doctest when comparing - 0.0 == 0.0

2017-09-26 Thread R. David Murray
R. David Murray added the comment: Can you explain why you think that is a bug in doctest? It looks like you are getting different output than you expect, but that by itself wouldn't be a bug in doctest. -- nosy: +r.david.murray ___ Python tracker

[issue31599] bug in doctest when comparing - 0.0 == 0.0

2017-09-26 Thread Zé Vinícius
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 tr