We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c6b8c4 commit 82a5d0bCopy full SHA for 82a5d0b
setup.cfg
@@ -43,6 +43,7 @@ testing =
43
pytest-enabler >= 1.3
44
45
# local
46
+ importlib-resources@git+https://github.com/python/importlib_resources@feature/203-non-package-modules
47
48
docs =
49
# upstream
tests/test_officepack.py
@@ -1,13 +1,12 @@
1
-importpathlib
2
-
3
importpytest
+importimportlib_resourcesasresources
4
5
fromopenpack.officepackimportOfficePackage
6
7
8
@pytest.fixture
9
defofficepack_sample(request):
10
-returnpathlib.Path(__file__).parent.joinpath('empty.docx').open('rb')
+returnresources.files(__name__).joinpath('empty.docx').open('rb')
11
12
13
deftest_open(officepack_sample):
0 commit comments