Skip to content

Commit 00f1936

Browse files
committed
fix: Satisfy older importlib.resources
1 parent 0af2d62 commit 00f1936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def examples() -> Path:
1212
"""Get bids-examples from submodule, allow environment variable override."""
1313
ret = os.getenv('BIDS_EXAMPLES')
1414
if not ret:
15-
ret = importlib.resources.files() / 'data' / 'bids-examples'
15+
ret = importlib.resources.files(__spec__.parent) / 'data' / 'bids-examples'
1616
if not any(ret.iterdir()):
1717
pytest.skip('bids-examples submodule is not checked out')
1818
return Path(ret)

0 commit comments

Comments
 (0)