Skip to content

Commit

Permalink
tests: Don't run tests that often segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Oct 8, 2020
1 parent 49cdb70 commit 2ac7cbd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_gil_scoped.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def _python_to_cpp_to_python_from_threads(num_threads, parallel=False):
thread.join()


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


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


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


# TODO: FIXME
@pytest.mark.xfail("env.PY >= (3,9) and env.MACOS", strict=False)
@pytest.mark.xfail("env.PY >= (3,9) and env.MACOS", run=False)
def test_python_to_cpp_to_python_from_process():
"""Makes sure there is no GIL deadlock when using processes.
Expand Down

0 comments on commit 2ac7cbd

Please sign in to comment.