Skip to content

Commit bf42491

Browse files
Guard import of multiprocessing
1 parent 9a0482b commit bf42491

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

numcodecs/tests/test_entrypoints_backport.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import importlib
22
import os.path
33
import sys
4-
from multiprocessing import Process
4+
5+
from numcodecs.tests.common import is_wasm
6+
7+
if not is_wasm: # pragma: no cover
8+
from multiprocessing import Process
59

610
import pytest
711

0 commit comments

Comments
 (0)