Skip to content

Commit c3db72e

Browse files
committed
Workaround for PYPY WIN exitcode None
1 parent 1be1885 commit c3db72e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_gil_scoped.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import multiprocessing
22
import threading
33

4+
import pytest
5+
6+
import env
47
from pybind11_tests import gil_scoped as m
58

69

@@ -103,7 +106,10 @@ def test_python_to_cpp_to_python_from_process():
103106
104107
This test is for completion, but it was never an issue.
105108
"""
106-
assert _run_in_process(_python_to_cpp_to_python) == 0
109+
exitcode = _run_in_process(_python_to_cpp_to_python)
110+
if exitcode is None and env.PYPY and env.WIN:
111+
pytest.skip("Ignoring unexpected exitcode None (PYPY WIN)")
112+
assert exitcode == 0
107113

108114

109115
def test_cross_module_gil_released():

0 commit comments

Comments
 (0)