Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Conversation

sfc-gh-wzhao
Copy link
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
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!

importlib_resources/tests/test_reader.py Outdated Show resolved Hide resolved
importlib_resources/tests/test_resource.py Show resolved Hide resolved
@jaraco jaraco self-assigned this Feb 25, 2024
@jaraco jaraco merged commit 3f49de3 into python:main Feb 25, 2024
14 checks passed
@jaraco
Copy link
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