Skip to content

Commit 9301c51

Browse files
committed
except the correct error type to prevent breakage on windows
1 parent ba9a8a8 commit 9301c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def mp_fork_ctx() -> Iterator[multiprocessing.context.BaseContext | None]:
139139
mp_ctx = None
140140
try:
141141
mp_ctx = multiprocessing.get_context("fork")
142-
except KeyError:
142+
except ValueError:
143143
pass
144144

145145
try:

0 commit comments

Comments
 (0)