From af1c3a9f9cd2b159340bda8dcf3fa61cf2036c40 Mon Sep 17 00:00:00 2001 From: Jason Madden Date: Mon, 12 Feb 2024 13:29:25 -0600 Subject: [PATCH] Block the new tests that don't run on 3.11.7 from doing so; attempt to force the latest patch releases of 3.11.8 on GHA. --- .github/workflows/ci.yml | 2 +- src/gevent/testing/patched_tests_setup.py | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 814f22f13..cd383b933 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,7 @@ jobs: # with it. That means for the bulk of our testing we need to # stick to 3.9. # PyPy 7.3.13 started crashing for unknown reasons. - python-version: ["3.12.1", "pypy-3.10-v7.3.12", 3.8, 3.9, '3.10', '3.11'] + python-version: ["3.12.1", "pypy-3.10-v7.3.12", 3.8, 3.9, '3.10', '3.11.8'] os: [macos-latest, ubuntu-latest] exclude: # The bulk of the testing is on Linux and Windows (appveyor). diff --git a/src/gevent/testing/patched_tests_setup.py b/src/gevent/testing/patched_tests_setup.py index 89970ac36..1943b583e 100644 --- a/src/gevent/testing/patched_tests_setup.py +++ b/src/gevent/testing/patched_tests_setup.py @@ -1214,6 +1214,15 @@ def test(*args, **kwargs): 'test_subprocess.ProcessTestCase.test__use_vfork', ] + if sys.version_info[:3] < (3, 11, 8): + # New tests in that version that won't pass on earlier versions. + disabled_tests += [ + 'test_threading.ThreadTests.test_main_thread_after_fork_from_dummy_thread', + 'tets_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_client', + 'test_ssl.TestPreHandshakeClose.test_preauth_data_to_tls_server', + 'test_signal.PosixTests.test_no_repr_is_called_on_signal_handler', + ] + if PY312: disabled_tests += [ # This test is new in 3.12.1; it appears to essentially rely