diff --git a/tests/test_image.py b/tests/test_image.py index b7de2def252e4f8bf4edcf672ebb773eafc38ee5..80423b7ec43dddff70ee780e75d9ea63594627e2 100644 --- a/tests/test_image.py +++ b/tests/test_image.py @@ -12,6 +12,8 @@ import json import os.path as op import itertools as it +from pathlib import Path + import pytest import numpy as np @@ -148,6 +150,8 @@ def test_load(): # Not raising an error means the test passes for fname in shouldPass: fslimage.Image(op.join(testdir, fname)) + testpath = Path(testdir) / fname + fslimage.Image(testpath) # These should raise an error for fname, exc in shouldRaise: