(method_name, module_name="test_utilities", update_env={})
| 314 | |
| 315 | |
| 316 | def _check_in_separate_process(method_name, module_name="test_utilities", update_env={}): |
| 317 | import subprocess |
| 318 | |
| 319 | cwd, environ = _build_launch_env() |
| 320 | environ.update(update_env) |
| 321 | |
| 322 | subprocess.check_call( |
| 323 | [ |
| 324 | sys.executable, |
| 325 | "-c", |
| 326 | "import %(module_name)s;%(module_name)s.%(method_name)s()" % dict(method_name=method_name, module_name=module_name), |
| 327 | ], |
| 328 | env=environ, |
| 329 | cwd=cwd, |
| 330 | ) |
| 331 | |
| 332 | |
| 333 | @pytest.mark.skipif(not IS_CPYTHON, reason="Functionality to trace other threads requires CPython.") |
no test coverage detected