Skip to content

Testing Python 3.12 #7727

@The-Compiler

Description

@The-Compiler

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:

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:

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: infrastructureIssues related to development scripts, CI, servers, etc.priority: 1 - middleIssues which should be done at some point, but aren't that important.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions