Add official support for Python 3.15#14527
Merged
Merged
Conversation
Python 3.15b1 no longer sets `module.__cached__`. But `module.__spec__.cached` is still set, is recommended over `module.__cached__` by Python documentation, and it works for all previous versions as well, so switch to that. Ref: https://docs.python.org/3.15/reference/datamodel.html#module.__file__
RonnyPfannschmidt
approved these changes
May 27, 2026
The-Compiler
approved these changes
May 27, 2026
| # https://github.com/pytest-dev/pytest/pull/13057 | ||
| 'default::pytest.PytestFDWarning', | ||
| # https://github.com/pexpect/pexpect/issues/827 | ||
| 'ignore:.*use of forkpty\(\) may lead to deadlocks in the child:DeprecationWarning', |
Member
There was a problem hiding this comment.
I would prefer
Suggested change
| 'ignore:.*use of forkpty\(\) may lead to deadlocks in the child:DeprecationWarning', | |
| 'ignore:.*use of forkpty\(\) may lead to deadlocks in the child:DeprecationWarning:ptyprocess', |
here so that the ignore is more narrow, but I see we haven't done that for other ignores either, so I suppose this is more consistent as-is.
…ython 3.15 Nothing we can do about it, needs a new pexpect release, so ignore for now.
Currently at beta 1. Fix pytest-dev#14524.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently at beta 1.
Fix #14524.