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

test: Construct a zip module and verify acres functionality #8

Merged
merged 6 commits into from
Dec 9, 2024

Conversation

effigies
Copy link
Member

@effigies effigies commented Dec 9, 2024

Closes #1.

Ran across some bugs with Loader(__package__) on Python 3.8/3.9 for zip imports, leading to the discovery that we should be using __spec__.name. Also, our tests revealed that our resource cache was not successfully persisting across Loaders, as Loader(x).files != Loader(x).files. Instead cache the anchor and segments to have a better chance.

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ea065c0) to head (8bc80b6).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main        #8   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         5    +1     
  Lines           76       106   +30     
=========================================
+ Hits            76       106   +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@effigies effigies merged commit 9cee2b6 into nipreps:main Dec 9, 2024
15 checks passed
@effigies effigies deleted the doc/recommend-spec-name branch December 9, 2024 21:13
@effigies effigies changed the title test: Run construct a zip module and verify acres functionality test: Construct a zip module and verify acres functionality Dec 10, 2024
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.

Test on zipped package data
1 participant