Skip to content

Commit 0af9e6a

Browse files
Skip free threading test for pure Python implementation
1 parent a642f6a commit 0af9e6a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_free_threading.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ def test_race_condition_iterator_vs_mutation(
2020
a standard Python `RuntimeError` ('MultiDict is changed during iteration'), preventing
2121
crashes.
2222
"""
23+
if cls.__module__ == "multidict._multidict_py":
24+
pytest.skip("Test is only applicable to the C extension")
25+
2326
md: Union[CIMultiDict[str], MultiDict[str]] = cls()
2427
for i in range(8):
2528
md[f"init-{i}"] = f"v{i}"

0 commit comments

Comments
 (0)