mirror of
https://github.com/jsvine/pdfplumber.git
synced 2026-08-29 08:34:23 +08:00
Remove no-longer-guaranteed test_repair assertion
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user