Fix assert that depends on POSIX-y file handling
This commit is contained in:
+2
-1
@@ -132,7 +132,8 @@ def test_image_too_large_pdf(monkeypatch, resources, outdir):
|
||||
tesseract_env=None,
|
||||
)
|
||||
assert Path(outdir / 'txt.txt').read_text() == '[skipped page]'
|
||||
assert Path(outdir / 'pdf.pdf').samefile(resources / 'blank.pdf')
|
||||
if os.name != 'nt': # different semantics
|
||||
assert Path(outdir / 'pdf.pdf').samefile(resources / 'blank.pdf')
|
||||
|
||||
|
||||
def test_timeout(caplog):
|
||||
|
||||
Reference in New Issue
Block a user