MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_pythread_state_clear_destructor

Function test_pythread_state_clear_destructor

tests/test_thread.py:75–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73@pytest.mark.skipif(not m.defined_PYBIND11_HAS_STD_BARRIER, reason="no <barrier>")
74@pytest.mark.skipif(env.sys_is_gil_enabled(), reason="Deadlock with the GIL")
75def test_pythread_state_clear_destructor():
76 class Foo:
77 def __del__(self):
78 m.acquire_gil()
79
80 m.test_pythread_state_clear_destructor(Foo)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected