Update test_validators.py for Python 3.15a7#1530
Conversation
matches_re() error message changed in Python 3.15 alpha 7 with the introduction of re.prefixmatch().
|
| "'func' must be one of None, fullmatch, match, search." | ||
| == ei.value.args[0] | ||
| ) | ||
| if sys.version_info >= (3, 15): |
There was a problem hiding this comment.
It's possible to keep support for Python 3.15 alpha 6 by checking the whole version:
| if sys.version_info >= (3, 15): | |
| if sys.version_info >= (3, 15, 0, 'alpha', 7): |
I don't think that it's worth it to support older alpha versions, so I just wrote (3, 15).
There was a problem hiding this comment.
yeah for us there's only the next big release, so this is correct
Python 3.15 is not released yet (it's still an alpha version), so I didn't add a changelog fragment. |
|
@vstinner are y'all already testing 3.15 at RH? Can we expect more big things or is it a chiller release than 3.14? |
As always, since 3.15.0a1 :) https://status.fedoralovespython.org/
Usually, it's the first beta where all the changes are rushed in for the last possible moment, that decides this :D |
|
Thanks for (very) quickly merging my fix!
Yes, we are rebuilding all Python packages with the latest Python 3.15 release (so 3.15a7 currently), and most Python Fedora packages are running their test suite as part of the package build process. That's how we discovered the attrs issue on alpha7.
That's the funny part: we don't know in advance :-D Things should settle down in May with the feature freeze (Python 3.15 beta1). My own opinion is that 3.15 migration seems to be easier than the 3.14 migration: less breaking changes. |
matches_re() error message changed in Python 3.15 alpha 7 with the introduction of re.prefixmatch().
Summary
Pull Request Check List
mainbranch..pyi).typing-examples/baseline.pyor, if necessary,typing-examples/mypy.py.attr/__init__.pyi, they've also been re-imported inattrs/__init__.pyi.docs/api.rstby hand.@attr.s()and@attrs.define()have to be added by hand too.versionadded,versionchanged, ordeprecateddirectives.The next version is the second number in the current release + 1.
The first number represents the current year.
So if the current version on PyPI is 26.2.0, the next version is gonna be 26.3.0.
If the next version is the first in the new year, it'll be 27.1.0.
.rstand.mdfiles is written using semantic newlines.changelog.d.