Remove no-longer-guaranteed test_repair assertion

This commit is contained in:
Jeremy Singer-Vine
2025-11-08 12:13:57 -05:00
parent 67614ab7a1
commit 8f571bb49a
-4
View File
@@ -57,13 +57,9 @@ class Test(unittest.TestCase):
path = os.path.join(HERE, "pdfs/malformed-from-issue-932.pdf")
with tempfile.NamedTemporaryFile("wb") as out:
pdfplumber.repair(path, outfile=out.name)
size_default = os.stat(out.name).st_size
with tempfile.NamedTemporaryFile("wb") as out:
pdfplumber.repair(path, outfile=out.name, setting="prepress")
size_prepress = os.stat(out.name).st_size
assert size_default > size_prepress
def test_repair_password(self):
path = os.path.join(HERE, "pdfs/password-example.pdf")