Skip to content

Commit 1f4729d

Browse files
committed
tests: the condition was too look on xfail
1 parent 5ddba38 commit 1f4729d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_gil_scoped.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _python_to_cpp_to_python_from_threads(num_threads, parallel=False):
5555

5656

5757
# TODO: FIXME, sometimes returns -11 instead of 0
58-
@pytest.mark.xfail("env.PY > (3,8) and env.MACOS", strict=False)
58+
@pytest.mark.xfail("env.PY >= (3,9) and env.MACOS", strict=False)
5959
def test_python_to_cpp_to_python_from_thread():
6060
"""Makes sure there is no GIL deadlock when running in a thread.
6161
@@ -65,7 +65,7 @@ def test_python_to_cpp_to_python_from_thread():
6565

6666

6767
# TODO: FIXME
68-
@pytest.mark.xfail("env.PY > (3,8) and env.MACOS", strict=False)
68+
@pytest.mark.xfail("env.PY >= (3,9) and env.MACOS", strict=False)
6969
def test_python_to_cpp_to_python_from_thread_multiple_parallel():
7070
"""Makes sure there is no GIL deadlock when running in a thread multiple times in parallel.
7171
@@ -75,7 +75,7 @@ def test_python_to_cpp_to_python_from_thread_multiple_parallel():
7575

7676

7777
# TODO: FIXME
78-
@pytest.mark.xfail("env.PY > (3,8) and env.MACOS", strict=False)
78+
@pytest.mark.xfail("env.PY >= (3,9) and env.MACOS", strict=False)
7979
def test_python_to_cpp_to_python_from_thread_multiple_sequential():
8080
"""Makes sure there is no GIL deadlock when running in a thread multiple times sequentially.
8181
@@ -85,7 +85,7 @@ def test_python_to_cpp_to_python_from_thread_multiple_sequential():
8585

8686

8787
# TODO: FIXME
88-
@pytest.mark.xfail("env.PY > (3,8) and env.MACOS", strict=False)
88+
@pytest.mark.xfail("env.PY >= (3,9) and env.MACOS", strict=False)
8989
def test_python_to_cpp_to_python_from_process():
9090
"""Makes sure there is no GIL deadlock when using processes.
9191

0 commit comments

Comments
 (0)