-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Testing Python 3.12 #7727
Copy link
Copy link
Closed
Labels
component: infrastructureIssues related to development scripts, CI, servers, etc.Issues related to development scripts, CI, servers, etc.priority: 1 - middleIssues which should be done at some point, but aren't that important.Issues which should be done at some point, but aren't that important.
Description
While we had Python 3.12 in the CI during its Alpha phase (with zero issues), now in the Beta phase it looks like things start breaking in upstream projects. Removing it from CI for now, until upstream issues are fixed. Here is what I ran into:
pytest
Shows ast deprecation warnings:
- [Python 3.12] Assertion rewriting triggers DeprecationWarning pytest-dev/pytest#10977
- Python 3.12 support pytest-dev/pytest#10894
Hidden by:
diff --git i/pytest.ini w/pytest.ini
index 46a22c5c8..899118186 100644
--- i/pytest.ini
+++ w/pytest.ini
@@ -63,4 +63,7 @@ filterwarnings =
default:Test process .* failed to terminate!:UserWarning
# https://github.com/certifi/python-certifi/issues/170
ignore:path is deprecated\. Use files\(\) instead\. Refer to https.//importlib-resources\.readthedocs\.io/en/latest/using\.html#migrating-from-legacy for migration advice\.:DeprecationWarning:certifi.core
+ # Python 3.12: https://github.com/pytest-dev/pytest/issues/10977
+ ignore:ast\.(Str|NameConstant|Num) is deprecated and will be removed in Python 3\.14; use ast\.Constant instead:DeprecationWarning
+ ignore:Attribute s is deprecated and will be removed in Python 3\.14; use value instead:DeprecationWarning
faulthandler_timeout = 90
hypothesis
Triggers syntax error:
- extract_lambda_source() fails with Python 3.12b1 HypothesisWorks/hypothesis#3665
- Add Python 3.12 beta to our CI pipeline HypothesisWorks/hypothesis#3663
I don't really see a way around this, guess we'll need to wait for either Hypothesis or (more likely based on the comment) CPython comes up with a fix for this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: infrastructureIssues related to development scripts, CI, servers, etc.Issues related to development scripts, CI, servers, etc.priority: 1 - middleIssues which should be done at some point, but aren't that important.Issues which should be done at some point, but aren't that important.