Skip to content

Fix NotADirectory error when calling files on a subdirectory of a zipped namespace package#293

Merged
jaraco merged 6 commits intopython:mainfrom
sfc-gh-wzhao:wzhao-fix-files-not-a-directory-when-reading-submodule-of-a-zipped-namespace-package
Feb 25, 2024
Merged

Fix NotADirectory error when calling files on a subdirectory of a zipped namespace package#293
jaraco merged 6 commits intopython:mainfrom
sfc-gh-wzhao:wzhao-fix-files-not-a-directory-when-reading-submodule-of-a-zipped-namespace-package

Conversation

@sfc-gh-wzhao
Copy link
Copy Markdown
Contributor

@sfc-gh-wzhao sfc-gh-wzhao commented Jan 3, 2024

Fix #294

To make sure this is tested, I adds a subdirectory to the namespace01 in the test data, and by the way adding tests for zipped namespace package to make sure all other features are working correctly in this case.

@jaraco jaraco force-pushed the wzhao-fix-files-not-a-directory-when-reading-submodule-of-a-zipped-namespace-package branch from aba2a7e to d93e241 Compare February 25, 2024 19:25
Copy link
Copy Markdown
Member

@jaraco jaraco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good. I appreciate the attention to detail, such as changing comments that would have been made invalid, maintaining consistency in the test approach, and adding new tests for missing coverage. You rock. I have a couple of comments, but I plan to address those myself. Thanks for the contrib!

Comment thread importlib_resources/tests/test_reader.py Outdated
Comment thread importlib_resources/tests/test_resource.py
@jaraco jaraco self-assigned this Feb 25, 2024
@jaraco jaraco merged commit 3f49de3 into python:main Feb 25, 2024
@jaraco
Copy link
Copy Markdown
Member

jaraco commented Feb 25, 2024

Released with 6.1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NotADirectory error when calling files on a subdirectory of a zipped namespace package

2 participants