File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1010
1111import io
1212import os
13+ import pathlib
1314
1415import numpy as np
1516import pytest
@@ -291,7 +292,7 @@ def test_mgh_load_fileobj():
291292 # pass the filename to the array proxy, please feel free to change this
292293 # test.
293294 img = MGHImage .load (MGZ_FNAME )
294- assert img .dataobj .file_like == MGZ_FNAME
295+ assert pathlib . Path ( img .dataobj .file_like ) == pathlib . Path ( MGZ_FNAME )
295296 # Check fileobj also passed into dataobj
296297 with ImageOpener (MGZ_FNAME ) as fobj :
297298 contents = fobj .read ()
Original file line number Diff line number Diff line change 88### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
99
1010import os
11+ import pathlib
1112import warnings
1213from unittest import TestCase
1314
@@ -183,8 +184,8 @@ class TestEcatImage(TestCase):
183184 img = image_class .load (example_file )
184185
185186 def test_file (self ):
186- assert self .img .file_map ['header' ].filename == self .example_file
187- assert self .img .file_map ['image' ].filename == self .example_file
187+ assert pathlib . Path ( self .img .file_map ['header' ].filename ) == pathlib . Path ( self .example_file )
188+ assert pathlib . Path ( self .img .file_map ['image' ].filename ) == pathlib . Path ( self .example_file )
188189
189190 def test_save (self ):
190191 tmp_file = 'tinypet_tmp.v'
You can’t perform that action at this time.
0 commit comments