@@ -206,20 +206,22 @@ def test_load_images():
206206
207207
208208def test_parse_default_path ():
209- user_path = Path () .home ()
209+ user_path = Path .home ()
210210 assert utils .parse_default_path ([None ]) == str (user_path )
211211
212- test_path = Path ( "C:" ) / "test" / "test" / "test" / "test"
212+ test_path = ( Path . home ( ) / "test" / "test" / "test" / "test" ). as_posix ()
213213 path = [test_path , None , None ]
214- assert utils .parse_default_path (path , check_existence = False ) == test_path
214+ assert utils .parse_default_path (path , check_existence = False ) == str (
215+ test_path
216+ )
215217
216- test_path = Path ( "C:" ) / "test" / "does" / "not" / "exist"
218+ test_path = ( Path . home ( ) / "test" / "does" / "not" / "exist" ). as_posix ()
217219 path = [test_path , None , None ]
218220 assert utils .parse_default_path (path , check_existence = True ) == str (
219221 Path .home ()
220222 )
221223
222- long_path = Path ("D:" )
224+ long_path = Path ("D:/ " )
223225 long_path = (
224226 long_path
225227 / "very"
@@ -233,7 +235,9 @@ def test_parse_default_path():
233235 / "allthetime"
234236 )
235237 path = [test_path , None , None , long_path , "" ]
236- assert utils .parse_default_path (path , check_existence = False ) == long_path
238+ assert utils .parse_default_path (path , check_existence = False ) == str (
239+ long_path .as_posix ()
240+ )
237241
238242
239243def test_thread_test (make_napari_viewer_proxy ):
0 commit comments