From 76ff961c78b4c9f8e433c5834c5a0c8fd8ff4b17 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Wed, 2 Oct 2024 18:57:32 +0300 Subject: [PATCH] fixup! Drop unecessary temp files --- tests/isolation_provider/base.py | 8 ++++---- tests/isolation_provider/test_qubes.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/isolation_provider/base.py b/tests/isolation_provider/base.py index 72f3893..a3c4db9 100644 --- a/tests/isolation_provider/base.py +++ b/tests/isolation_provider/base.py @@ -29,7 +29,7 @@ class IsolationProviderTest: p = provider.start_doc_to_pixels_proc(doc) with pytest.raises(errors.ConverterProcException): - provider._convert(doc, tmpdir, None, p) + provider._convert(doc, None, p) assert provider.get_proc_exception(p) == errors.MaxPagesException def test_max_pages_client_enforcement( @@ -46,7 +46,7 @@ class IsolationProviderTest: doc = Document(sample_doc) p = provider.start_doc_to_pixels_proc(doc) with pytest.raises(errors.MaxPagesException): - provider._convert(doc, tmpdir, None, p) + provider._convert(doc, None, p) def test_max_dimensions( self, @@ -60,12 +60,12 @@ class IsolationProviderTest: doc = Document(sample_bad_width) p = provider.start_doc_to_pixels_proc(doc) with pytest.raises(errors.MaxPageWidthException): - provider._convert(doc, tmpdir, None, p) + provider._convert(doc, None, p) doc = Document(sample_bad_height) p = provider.start_doc_to_pixels_proc(doc) with pytest.raises(errors.MaxPageHeightException): - provider._convert(doc, tmpdir, None, p) + provider._convert(doc, None, p) class IsolationProviderTermination: diff --git a/tests/isolation_provider/test_qubes.py b/tests/isolation_provider/test_qubes.py index acd1fbf..e3b0b28 100644 --- a/tests/isolation_provider/test_qubes.py +++ b/tests/isolation_provider/test_qubes.py @@ -79,7 +79,7 @@ class TestQubes(IsolationProviderTest): ) with pytest.raises(errors.ConverterProcException): doc = Document(sample_doc) - provider._convert(doc, tmpdir, None, proc) + provider._convert(doc, None, proc) assert provider.get_proc_exception(proc) == errors.QubesQrexecFailed