From 9ad8cbf1f65836e63aadbafaf7236b7740f1a422 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 6 Jan 2020 02:02:05 -0800 Subject: [PATCH] Fix assert that depends on POSIX-y file handling --- tests/test_tess4.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_tess4.py b/tests/test_tess4.py index f2b81636..a66f2186 100644 --- a/tests/test_tess4.py +++ b/tests/test_tess4.py @@ -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):