Skip to content

Commit 542a9a5

Browse files
committed
Address review
1 parent 14e81ed commit 542a9a5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/unit/test_raw.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
import msgspec
1010

11-
emscripten = pytest.mark.skipif(
12-
sys.platform == "emscripten",
13-
reason="Emscripten does not support subprocesses",
11+
requires_subprocess = pytest.mark.skipif(
12+
not getattr(subprocess, "_can_fork_exec", True),
13+
reason="subprocess support required",
1414
)
1515

1616

@@ -76,7 +76,7 @@ def test_raw_copy():
7676
assert ref() is None
7777

7878

79-
@emscripten
79+
@requires_subprocess
8080
def test_raw_copy_doesnt_leak():
8181
"""See https://github.com/msgspec/msgspec/pull/709"""
8282
script = textwrap.dedent(

0 commit comments

Comments
 (0)