File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,8 @@ def wrapper(*args, **kwargs):
24
24
# MultiplexedPath may fail on zip subdirectory
25
25
return
26
26
# Python 3.10+
27
- if reader .__class__ .__module__ .startswith ('importlib.resources.' ):
27
+ mod_name = reader .__class__ .__module__
28
+ if mod_name .startswith ('importlib.' ) and mod_name .endswith ('readers' ):
28
29
return
29
30
# Python 3.8, 3.9
30
31
if isinstance (reader , _adapters .CompatibilityFiles ) and (
Original file line number Diff line number Diff line change 4
4
import importlib
5
5
import contextlib
6
6
7
- import pytest
8
-
9
7
import importlib_resources as resources
10
8
from ..abc import Traversable
11
9
from . import data01
@@ -36,7 +34,6 @@ def test_read_text(self):
36
34
def test_traversable (self ):
37
35
assert isinstance (resources .files (self .data ), Traversable )
38
36
39
- @pytest .mark .xfail ("sys.version_info[:2] == (3, 10)" , reason = "#257" )
40
37
def test_joinpath_with_multiple_args (self ):
41
38
files = resources .files (self .data )
42
39
binfile = files .joinpath ('subdirectory' , 'binary.file' )
You can’t perform that action at this time.
0 commit comments