diff --git a/tests/test_2635.py b/tests/test_2635.py deleted file mode 100644 index e75ae716a..000000000 --- a/tests/test_2635.py +++ /dev/null @@ -1,12 +0,0 @@ -import fitz - - -def test_2635(): - """Rendering a page before and after cleaning it should yield the same pixmap.""" - doc = fitz.open(f"{scriptdir}/resources/test_2635.pdf") - page = doc[0] - pix1 = page.get_pixmap() # pixmap before cleaning - - page.clean_contents() # clean page - pix2 = page.get_pixmap() # pixmap after cleaning - assert pix1.samples == pix2.samples # assert equality diff --git a/tests/test_general.py b/tests/test_general.py index 9e78b17e5..2e06a00b4 100644 --- a/tests/test_general.py +++ b/tests/test_general.py @@ -553,3 +553,14 @@ def test_2596(): page = doc.reload_page(page) pix1 = page.get_pixmap() assert pix1.samples == pix0.samples + + +def test_2635(): + """Rendering a page before and after cleaning it should yield the same pixmap.""" + doc = fitz.open(f"{scriptdir}/resources/test_2635.pdf") + page = doc[0] + pix1 = page.get_pixmap() # pixmap before cleaning + + page.clean_contents() # clean page + pix2 = page.get_pixmap() # pixmap after cleaning + assert pix1.samples == pix2.samples # assert equality \ No newline at end of file