Skip to content

tests: migrate from using deprecated tmpdir to preferred tmp_path#1873

Merged
atravitz merged 8 commits intomainfrom
tests/migrate_from_tmpdir_to_tmp_path
Mar 24, 2026
Merged

tests: migrate from using deprecated tmpdir to preferred tmp_path#1873
atravitz merged 8 commits intomainfrom
tests/migrate_from_tmpdir_to_tmp_path

Conversation

@atravitz
Copy link
Contributor

@atravitz atravitz commented Mar 13, 2026

resolves #1872

and gets ahead of some headaches seen in #1848

Checklist

  • All new code is appropriately documented (user-facing code must have complete docstrings).
  • Added a news entry, or the changes are not user-facing.
  • Ran pre-commit: you can run pre-commit locally or comment on this PR with pre-commit.ci autofix.

Manual Tests: these are slow so don't need to be run every commit, only before merging and when relevant changes are made (generally at reviewer-discretion).

Developers certificate of origin

@atravitz atravitz force-pushed the tests/migrate_from_tmpdir_to_tmp_path branch from 58e07a1 to 3f6fb68 Compare March 13, 2026 17:33
@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 86.32219% with 90 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.87%. Comparing base (461bf60) to head (154b84a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...sts/protocols/openmm_rfe/test_hybrid_top_resume.py 7.40% 25 Missing ⚠️
...s/protocols/openmm_rfe/test_hybrid_top_protocol.py 86.79% 21 Missing ⚠️
...fe/tests/protocols/openmm_ahfe/test_ahfe_resume.py 15.00% 17 Missing ⚠️
.../tests/protocols/openmm_septop/test_septop_slow.py 80.48% 8 Missing ⚠️
...ests/protocols/openmm_md/test_plain_md_protocol.py 90.38% 5 Missing ⚠️
...tests/protocols/openmm_rfe/test_hybrid_top_slow.py 33.33% 4 Missing ⚠️
...enfe/tests/protocols/openmm_abfe/test_abfe_slow.py 0.00% 3 Missing ⚠️
...enfe/tests/protocols/openmm_ahfe/test_ahfe_slow.py 0.00% 3 Missing ⚠️
.../tests/protocols/openmm_abfe/test_abfe_energies.py 33.33% 2 Missing ⚠️
...fe/tests/protocols/openmm_md/test_plain_md_slow.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1873      +/-   ##
==========================================
- Coverage   94.54%   91.87%   -2.68%     
==========================================
  Files         206      206              
  Lines       18255    18181      -74     
==========================================
- Hits        17260    16703     -557     
- Misses        995     1478     +483     
Flag Coverage Δ
fast-tests 91.87% <86.32%> (?)
slow-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@atravitz atravitz force-pushed the tests/migrate_from_tmpdir_to_tmp_path branch from 0e6ea7a to 8965948 Compare March 23, 2026 17:44
@atravitz atravitz force-pushed the tests/migrate_from_tmpdir_to_tmp_path branch from 19f5495 to ac71c5d Compare March 23, 2026 18:08
@atravitz atravitz marked this pull request as ready for review March 23, 2026 20:04
@atravitz atravitz requested review from IAlibay and mikemhenry and removed request for mikemhenry March 23, 2026 22:17
@github-actions
Copy link

No API break detected ✅

@atravitz atravitz added this to the 1.10.0 milestone Mar 23, 2026
@atravitz atravitz merged commit cd17b54 into main Mar 24, 2026
9 of 10 checks passed
@atravitz atravitz deleted the tests/migrate_from_tmpdir_to_tmp_path branch March 24, 2026 14:10
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.

update tests to use tmp_path instead of tmpdir

2 participants