Fix assert that depends on POSIX-y file handling

This commit is contained in:
James R. Barlow
2020-01-06 02:02:05 -08:00
parent 123fde174d
commit 9ad8cbf1f6
+2 -1
View File
@@ -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):