Skip to content

Commit f22bea2

Browse files
authored
Skip garbage collection test on PyPy (#521)
1 parent fc0599e commit f22bea2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_garbage_collection.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import gc
2+
import sys
3+
4+
import pytest
25

36
from asgiref.local import Local
47

@@ -29,6 +32,9 @@ def clean_up_after_garbage_collection_test() -> None:
2932
gc.enable()
3033

3134

35+
@pytest.mark.skipif(
36+
sys.implementation.name == "pypy", reason="Test relies on CPython GC internals"
37+
)
3238
def test_thread_critical_Local_remove_all_reference_cycles() -> None:
3339
try:
3440
# given

0 commit comments

Comments
 (0)