diff --git a/tests/isolation_provider/test_dummy.py b/tests/isolation_provider/test_dummy.py index 9ba155d67..100268769 100644 --- a/tests/isolation_provider/test_dummy.py +++ b/tests/isolation_provider/test_dummy.py @@ -28,17 +28,17 @@ def start_doc_to_pixels_proc(self, document: Document) -> subprocess.Popen: start_new_session=True, ) - def terminate_doc_to_pixels_proc( - self, document: Document, p: subprocess.Popen - ) -> None: - p.terminate() - @pytest.fixture def provider_wait() -> DummyWait: return DummyWait() +@pytest.fixture +def provider() -> Dummy: + return Dummy() + + class TestDummyTermination(IsolationProviderTermination): def test_failed( self, @@ -51,3 +51,12 @@ def test_failed( return_value=errors.DocFormatUnsupported(), ) super().test_failed(provider_wait, mocker) + + def test_linger_unkillable( + self, + provider_wait: IsolationProvider, + mocker: MockerFixture, + ) -> None: + # We have to spawn a blocking process here, else we can't imitate an + # "unkillable" process. + super().test_linger_unkillable(provider_wait, mocker)