Skip to content

Fix condition for skipping safety test on Python 3.12.#20

Open
sT331h0rs3 wants to merge 1 commit intojaraco:mainfrom
sT331h0rs3:main
Open

Fix condition for skipping safety test on Python 3.12.#20
sT331h0rs3 wants to merge 1 commit intojaraco:mainfrom
sT331h0rs3:main

Conversation

@sT331h0rs3
Copy link

Condition, introduced in 398390e, allows to skip the safety test in Python 3.11 as well, though surely meant for 3.12 only.
Let me show the difference in REPL output:

Python 3.11.14 (main, Feb  4 2026, 20:23:03) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version_info
sys.version_info(major=3, minor=11, micro=14, releaselevel='final', serial=0)
>>> (3, 11) < sys.version_info < (3, 13)
True
>>> (3, 12) <= sys.version_info < (3, 13)
False
Python 3.12.12 (main, Jan 16 2026, 00:00:00) [GCC 14.3.1 20250617 (Red Hat 14.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version_info
sys.version_info(major=3, minor=12, micro=12, releaselevel='final', serial=0)
>>> (3, 11) < sys.version_info < (3, 13)
True
>>> (3, 12) <= sys.version_info < (3, 13)
True

The safety test successfully passes on Python 3.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments