Skip to content
Snippets Groups Projects
Commit 6b5ab232 authored by Evan Edmond's avatar Evan Edmond
Browse files

ENH: test creating images with Path objects

parent 30de770f
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,8 @@ import json ...@@ -12,6 +12,8 @@ import json
import os.path as op import os.path as op
import itertools as it import itertools as it
from pathlib import Path
import pytest import pytest
import numpy as np import numpy as np
...@@ -148,6 +150,8 @@ def test_load(): ...@@ -148,6 +150,8 @@ def test_load():
# Not raising an error means the test passes # Not raising an error means the test passes
for fname in shouldPass: for fname in shouldPass:
fslimage.Image(op.join(testdir, fname)) fslimage.Image(op.join(testdir, fname))
testpath = Path(testdir) / fname
fslimage.Image(testpath)
# These should raise an error # These should raise an error
for fname, exc in shouldRaise: for fname, exc in shouldRaise:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment