(mocker: MockerFixture, implementation: str)
| 50 | |
| 51 | @pytest.mark.parametrize("implementation", ["cpython", "pypy"]) |
| 52 | def test_runtime_without_interpreter_ids(mocker: MockerFixture, implementation: str) -> None: |
| 53 | mocker.patch("filelock._sqlite._fork._thread", new=SimpleNamespace()) |
| 54 | mocker.patch("filelock._sqlite._fork.sys", new=SimpleNamespace(implementation=SimpleNamespace(name=implementation))) |
| 55 | mocker.patch("filelock._sqlite._fork.import_module", autospec=True, side_effect=ModuleNotFoundError) |
| 56 | assert not _in_subinterpreter() |
| 57 | |
| 58 | |
| 59 | def test_embedded_cpython_without_the_interpreters_module(mocker: MockerFixture) -> None: |
nothing calls this directly
no test coverage detected