Skip to content

Commit 469c641

Browse files
committed
WIP: Update importlib.resources.path incantation.
1 parent a3f05cd commit 469c641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpydoc/tests/hooks/test_validate_hook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
@pytest.fixture
1515
def example_module(request):
16-
with importlib.resources.path(numpydoc) as fpath:
17-
fullpath = fpath / "tests/hooks/example_module.py"
16+
with importlib.resources.path(numpydoc, "tests/hooks/example_module.py") as fpath:
17+
fullpath = str(fpath)
1818
return str(fullpath)
1919

2020

0 commit comments

Comments
 (0)