Repository navigation
🚑 Clarify patch condition for doctest finder hack - #12471
The-Compiler merged 1 commit into
Conversation
There was a regression caused by pytest-dev#12431 that excluded the patch on broken CPython patch version ranges 3.11.0–3.11.8 and 3.12.0–3.12.2. This change fixes that by adjusting the patching conditional clause to include said versions. Closes pytest-dev#12430. Co-authored-by: Florian Bruhin <[email protected]>
fffe59d to
7183d07
Compare
|
Thanks @webknjaz and sorry for the regression. Can we put a deadline on how long 3.11.8 and 3.12.2 need to be supported? I'd prefer to write the logic to indicate when the workaround can be removed. If the intention is to keep this support until Python 3.13, then maybe the check should be simplified to include the behavior on |
|
I'd probably keep it in for a while. It doesn't cost us much, and e.g. Debian stable packages Python 3.11.2 and is supported until mid 2028. Thus, I'd probably keep it in until we drop Python 3.11/3.12 support in October 2027/2028. Yes, dealing with LTS distributions is annoying, but it's quite likely that someone will want to run pytest's selftests on a Debian stable machine at some point (or use pytest in a virtualenv with the system Python). I'd still prefer to keep the version checks as-is in that case though, as it makes it easier to spot them once we e.g. drop Python 3.11 and see the check related to Python 3.11 (rather than it being I believe there was a time around Python 3.5 or 3.6 where we excluded .0 or .1 due to bigger typing defects, but other than that, I believe we've always aimed to keep support for all patch level versions. Especially for trivial workarounds, I think this is the right way forward, and keeping them is less costly than dropping them (and e.g. figuring out how to best communicate what exact patch levels we support). |
There was a regression caused by pytest-dev#12431 that excluded the patch on broken CPython patch version ranges 3.11.0–3.11.8 and 3.12.0–3.12.2. This change fixes that by adjusting the patching conditional clause to include said versions. Closes pytest-dev#12430. Co-authored-by: Florian Bruhin <[email protected]>
There was a regression caused by #12431 that excluded the patch on broken CPython patch version ranges 3.11.0–3.11.8 and 3.12.0–3.12.2.
This change fixes that by adjusting the patching conditional clause to include said versions.
Closes #12430.