freedomofpress / dangerzone

Take potentially dangerous PDFs, office documents, or images and convert them to safe PDFs
https://dangerzone.rocks/
GNU Affero General Public License v3.0
3.75k stars 172 forks source link

tests: Restore previously mocked function #980

Closed apyrgio closed 3 weeks ago

apyrgio commented 3 weeks ago

Restore the isolation_provider.base.kill_process_group() function, which was previously mocked, at the end of the test_linger_unkillable() test. This function is initially mocked, in order to simulate a hang process. After the mocking completes, the test needs the original function once more, in order to actually kill the spawned process.