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
@@ -261,10 +261,10 @@ def test_xml_metadata_preserved(spoof_tesseract_noop, output_type, resources, ou
)
def test_srgb_in_unicode_path(tmpdir):
def test_srgb_in_unicode_path(tmp_path):
"""Test that we can produce pdfmark when install path is not ASCII"""
dstdir = Path(fspath(tmpdir)) / b'\xe4\x80\x80'.decode('utf-8')
dstdir = tmp_path / b'\xe4\x80\x80'.decode('utf-8')
dstdir.mkdir()
dst = dstdir / 'sRGB.icc'