File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
importlib_resources/tests Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -68,14 +68,10 @@ def test_join_path(self):
68
68
str (path .joinpath ('binary.file' ))[len (prefix ) + 1 :],
69
69
os .path .join ('namespacedata01' , 'binary.file' ),
70
70
)
71
- self .assertEqual (
72
- str (path .joinpath ('subdirectory' )._paths [0 ])[len (prefix ) + 1 :],
73
- os .path .join ('namespacedata01' , 'subdirectory' ),
74
- )
75
- self .assertEqual (
76
- str (path .joinpath ('subdirectory' )._paths [1 ])[len (prefix ) + 1 :],
77
- os .path .join ('data01' , 'subdirectory' ),
78
- )
71
+ sub = path .joinpath ('subdirectory' )
72
+ assert isinstance (sub , MultiplexedPath )
73
+ assert 'namespacedata01' in str (sub )
74
+ assert 'data01' in str (sub )
79
75
self .assertEqual (
80
76
str (path .joinpath ('imaginary' ))[len (prefix ) + 1 :],
81
77
os .path .join ('namespacedata01' , 'imaginary' ),
You can’t perform that action at this time.
0 commit comments