Skip to content

Commit

Permalink
tests: try to skip test in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Mar 20, 2024
1 parent 3d81045 commit 8e4348a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,6 @@ jobs:
-DDOWNLOAD_EIGEN=ON
-DCMAKE_CXX_COMPILER=clang++
-DCMAKE_CXX_STANDARD=17
-DPYBIND11_PYTEST_ARGS='-k "not test_throw_nested_exception"'
- name: Build
run: cmake --build . -j 2
Expand Down
7 changes: 6 additions & 1 deletion tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import env
import pybind11_cross_module_tests as cm
import pybind11_tests # noqa: F401
import pybind11_tests
from pybind11_tests import exceptions as m


Expand Down Expand Up @@ -248,6 +248,11 @@ def pycatch(exctype, f, *args): # noqa: ARG001
assert str(excinfo.value) == "this is a helper-defined translated exception"


# TODO: Investigate this crash
@pytest.mark.skipif(
sys.platform.startswith("win32") and "Clang" in pybind11_tests.compiler_info,
reason="Started sefaulting March 2024",
)
def test_throw_nested_exception():
with pytest.raises(RuntimeError) as excinfo:
m.throw_nested_exception()
Expand Down

0 comments on commit 8e4348a

Please sign in to comment.