[issue13337] IGNORE_CASE doctest option flag

2020-11-28 Thread Justin Baum
Change by Justin Baum : -- keywords: +patch nosy: +justinba1010 nosy_count: 3.0 -> 4.0 pull_requests: +22426 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23547 ___ Python tracker _

[issue13337] IGNORE_CASE doctest option flag

2020-11-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: FWIW, while i'm never a fan of doctests, this would also help reduce the impact of other golden value tests where different platforms capitalize their error messages or not. -- nosy: +gregory.p.smith versions: +Python 3.10 -Python 3.3

[issue13337] IGNORE_CASE doctest option flag

2011-11-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4 ___ Python tracker ___ ___ Pytho

[issue13337] IGNORE_CASE doctest option flag

2011-11-03 Thread Gerald Dalley
Gerald Dalley added the comment: ITSM? The motivating use case here comes from "nan" strings produced by libc in extension modules (even though python itself and some major libraries like numpy are consistent). At least some versions Solaris and Linux differ in this particular case. --

[issue13337] IGNORE_CASE doctest option flag

2011-11-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > Use case: nan values are printed as "nan" with typical Linux > implementations, but as "NaN" on other operating systems like Solaris. Did you test with Python 2.7 or above? ITSM that repr(float("nan")) == "nan" consistently on all platforms. --

[issue13337] IGNORE_CASE doctest option flag

2011-11-03 Thread Gerald Dalley
Changes by Gerald Dalley : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue13337] IGNORE_CASE doctest option flag

2011-11-03 Thread Gerald Dalley
New submission from Gerald Dalley : It would be helpful to have a doctest flag that makes the test case insensitive. Use case: nan values are printed as "nan" with typical Linux implementations, but as "NaN" on other operating systems like Solaris. In a naive implementation, the core change to