File: empty_no_images_to_verify_fixture.patch

package info (click to toggle)
python-pyvista 0.46.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 176,944 kB
  • sloc: python: 94,372; sh: 216; makefile: 70
file content (18 lines) | stat: -rw-r--r-- 694 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Index: python-pyvista/tests/plotting/test_plotting.py
===================================================================
--- python-pyvista.orig/tests/plotting/test_plotting.py	2025-11-27 22:00:34.690603728 +0100
+++ python-pyvista/tests/plotting/test_plotting.py	2025-11-27 22:00:34.683898738 +0100
@@ -117,12 +117,7 @@
 
 @pytest.fixture
 def no_images_to_verify(verify_image_cache_wrapper):
-    verify_image_cache_wrapper.allow_useless_fixture = True
-    yield verify_image_cache_wrapper
-    assert (n_calls := verify_image_cache_wrapper.n_calls) == 0, (
-        f'No images were expected to be generated, but got {n_calls}'
-    )
-
+    pass
 
 @pytest.fixture
 def multicomp_poly():