Decorator for skipping tests on the free-threaded build.
(msg="needs the GIL enabled")
| 1014 | Py_GIL_DISABLED = bool(sysconfig.get_config_var('Py_GIL_DISABLED')) |
| 1015 | |
| 1016 | def requires_gil_enabled(msg="needs the GIL enabled"): |
| 1017 | """Decorator for skipping tests on the free-threaded build.""" |
| 1018 | return unittest.skipIf(Py_GIL_DISABLED, msg) |
| 1019 | |
| 1020 | def expected_failure_if_gil_disabled(): |
| 1021 | """Expect test failure if the GIL is disabled.""" |
no outgoing calls
no test coverage detected
searching dependent graphs…