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):
2424 # MultiplexedPath may fail on zip subdirectory
2525 return
2626 # 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' ):
2829 return
2930 # Python 3.8, 3.9
3031 if isinstance (reader , _adapters .CompatibilityFiles ) and (
Original file line number Diff line number Diff line change 44import importlib
55import contextlib
66
7- import pytest
8-
97import importlib_resources as resources
108from ..abc import Traversable
119from . import data01
@@ -36,7 +34,6 @@ def test_read_text(self):
3634 def test_traversable (self ):
3735 assert isinstance (resources .files (self .data ), Traversable )
3836
39- @pytest .mark .xfail ("sys.version_info[:2] == (3, 10)" , reason = "#257" )
4037 def test_joinpath_with_multiple_args (self ):
4138 files = resources .files (self .data )
4239 binfile = files .joinpath ('subdirectory' , 'binary.file' )
You can’t perform that action at this time.
0 commit comments