Skip to content

Commit 110e6c1

Browse files
authored
ci: reduce flakiness a little (#2418)
1 parent 24dffe4 commit 110e6c1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

tests/env.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@
1010
PYPY = platform.python_implementation() == "PyPy"
1111

1212
PY2 = sys.version_info.major == 2
13+
14+
PY = sys.version_info

tests/test_gil_scoped.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# -*- coding: utf-8 -*-
22
import multiprocessing
33
import threading
4+
5+
import pytest
6+
7+
import env # noqa: F401
8+
49
from pybind11_tests import gil_scoped as m
510

611

@@ -57,6 +62,8 @@ def test_python_to_cpp_to_python_from_thread():
5762
assert _run_in_process(_python_to_cpp_to_python_from_threads, 1) == 0
5863

5964

65+
# TODO: FIXME
66+
@pytest.mark.xfail("env.PY > (3,8) and env.MACOS", strict=False)
6067
def test_python_to_cpp_to_python_from_thread_multiple_parallel():
6168
"""Makes sure there is no GIL deadlock when running in a thread multiple times in parallel.
6269
@@ -73,6 +80,8 @@ def test_python_to_cpp_to_python_from_thread_multiple_sequential():
7380
assert _run_in_process(_python_to_cpp_to_python_from_threads, 8, parallel=False) == 0
7481

7582

83+
# TODO: FIXME
84+
@pytest.mark.xfail("env.PY > (3,8) and env.MACOS", strict=False)
7685
def test_python_to_cpp_to_python_from_process():
7786
"""Makes sure there is no GIL deadlock when using processes.
7887

0 commit comments

Comments
 (0)