From f9beef0f6b48eb2e79a9618b3df45fa7df79bb82 Mon Sep 17 00:00:00 2001 From: Eric Masseran Date: Sat, 15 Feb 2025 20:09:11 +0100 Subject: [PATCH] Add fixture to skip pre 3.11 --- conftest.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/conftest.py b/conftest.py index c5d88f3b..146e353d 100644 --- a/conftest.py +++ b/conftest.py @@ -156,6 +156,14 @@ def jedi_path(): return os.path.dirname(__file__) +@pytest.fixture() +def skip_pre_python311(environment): + if environment.version_info < (3, 11): + # This if is just needed to avoid that tests ever skip way more than + # they should for all Python versions. + pytest.skip() + + @pytest.fixture() def skip_pre_python38(environment): if environment.version_info < (3, 8):