From c32518cac6d9e0c5ca04573cfea5061341281cae Mon Sep 17 00:00:00 2001 From: Olivier Grisel Date: Wed, 19 Jun 2024 16:30:28 +0200 Subject: [PATCH] TEST: skip test that crashes Python 3.8 --- tests/cloudpickle_test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/cloudpickle_test.py b/tests/cloudpickle_test.py index 5aa4baca..7d8fe86f 100644 --- a/tests/cloudpickle_test.py +++ b/tests/cloudpickle_test.py @@ -2479,6 +2479,12 @@ def inner_function(): inner_func = depickled_factory() assert inner_func() == _TEST_GLOBAL_VARIABLE + @pytest.mark.xfailif( + sys.version_info < (3, 9), + reason="Can cause CPython 3.8 to segfault", + ) + # TODO: remove this xfail when we drop support for Python 3.8. We don't + # plan to fix it because Python 3.8 is EOL. def test_recursion_during_pickling(self): class A: def __getattribute__(self, name):