Use newer pytest tmp_path API

This commit is contained in:
James R. Barlow
2019-06-01 01:55:51 -07:00
parent ba41ccae1b
commit fb933edc0f
8 changed files with 50 additions and 47 deletions
+2 -2
View File
@@ -28,8 +28,8 @@ from ocrmypdf.exec.tesseract import HOCR_TEMPLATE
@pytest.fixture
def blank_hocr(tmpdir):
filename = Path(str(tmpdir)) / "blank.hocr"
def blank_hocr(tmp_path):
filename = tmp_path / "blank.hocr"
filename.write_text(HOCR_TEMPLATE) # pylint: disable=E1101
return filename