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

use tmp_path in unit tests to fix concurrent file access / deletion #243

Merged

Conversation

zacharyburnett
Copy link
Collaborator

@zacharyburnett zacharyburnett commented Jul 9, 2024

so that tests can be run concurrently without stepping on each others' toes

@zacharyburnett zacharyburnett self-assigned this Jul 9, 2024
@zacharyburnett zacharyburnett requested a review from a team as a code owner July 9, 2024 19:13
@zacharyburnett
Copy link
Collaborator Author

zacharyburnett commented Jul 9, 2024

whoops, it looks like my editor auto-formatted the test files with ruff 😅 all fixed now

it should be functionally identical however (tests pass now)

Copy link

codecov bot commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.90%. Comparing base (8eb63d1) to head (4908465).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #243      +/-   ##
==========================================
- Coverage   87.64%   83.90%   -3.75%     
==========================================
  Files          17       17              
  Lines        1392     1323      -69     
==========================================
- Hits         1220     1110     -110     
- Misses        172      213      +41     

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

@zacharyburnett zacharyburnett force-pushed the fix/concurrency_files branch 6 times, most recently from c4d97e7 to b5042f6 Compare July 10, 2024 13:56
Copy link
Contributor

@stscirij stscirij left a comment

Choose a reason for hiding this comment

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

Looks good to me

@zacharyburnett zacharyburnett merged commit 7996733 into spacetelescope:master Aug 21, 2024
6 of 17 checks passed
@zacharyburnett zacharyburnett deleted the fix/concurrency_files branch August 21, 2024 18:37
zacharyburnett added a commit to zacharyburnett/calcos that referenced this pull request Aug 21, 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.

2 participants