Skip to content

Commit 27c008e

Browse files
authored
Skip test that causes Python 3.8 crash (#536)
1 parent f111f7a commit 27c008e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/cloudpickle_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2479,6 +2479,12 @@ def inner_function():
24792479
inner_func = depickled_factory()
24802480
assert inner_func() == _TEST_GLOBAL_VARIABLE
24812481

2482+
@pytest.mark.skipif(
2483+
sys.version_info < (3, 9),
2484+
reason="Can cause CPython 3.8 to segfault",
2485+
)
2486+
# TODO: remove this xfail when we drop support for Python 3.8. We don't
2487+
# plan to fix it because Python 3.8 is EOL.
24822488
def test_recursion_during_pickling(self):
24832489
class A:
24842490
def __getattribute__(self, name):

0 commit comments

Comments
 (0)