Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christoph Arthofer
fslpy
Commits
6b5ab232
Commit
6b5ab232
authored
Mar 31, 2021
by
Evan Edmond
Browse files
ENH: test creating images with Path objects
parent
30de770f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_image.py
View file @
6b5ab232
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment