Skip to content

fix: Adjust tests to not depend on how pytest is invoked#1478

Merged
effigies merged 3 commits intonipy:maint/5.4.xfrom
effigies:fix/python-m-pytest
Mar 10, 2026
Merged

fix: Adjust tests to not depend on how pytest is invoked#1478
effigies merged 3 commits intonipy:maint/5.4.xfrom
effigies:fix/python-m-pytest

Conversation

@effigies
Copy link
Member

@effigies effigies commented Mar 10, 2026

python -m pytest triggers changes in argparse behavior (relative to pytest) as of python/cpython#124799. Let's start by running some of our CI jobs with python -m pytest to replicate #1446.

Edit: Test failures in #1446 and #1476 replicated. Patching both.

Closes #1446.
Closes #1476.

@effigies effigies changed the base branch from master to maint/5.4.x March 10, 2026 19:22
@effigies effigies force-pushed the fix/python-m-pytest branch 3 times, most recently from 3f6acbc to 28c4e9a Compare March 10, 2026 19:34
@effigies effigies force-pushed the fix/python-m-pytest branch from 28c4e9a to 84a6956 Compare March 10, 2026 19:52
@effigies effigies mentioned this pull request Mar 10, 2026
@effigies effigies merged commit 9f78e47 into nipy:maint/5.4.x Mar 10, 2026
33 checks passed
@effigies effigies deleted the fix/python-m-pytest branch March 10, 2026 20:44
@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

❌ Patch coverage is 33.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.41%. Comparing base (db76723) to head (d8653ec).
⚠️ Report is 6 commits behind head on maint/5.4.x.

Files with missing lines Patch % Lines
nibabel/tests/test_removalschedule.py 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@               Coverage Diff               @@
##           maint/5.4.x    #1478      +/-   ##
===============================================
- Coverage        95.42%   95.41%   -0.01%     
===============================================
  Files              209      209              
  Lines            29820    29822       +2     
  Branches          4482     4483       +1     
===============================================
  Hits             28455    28455              
- Misses             930      931       +1     
- Partials           435      436       +1     

☔ 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.

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.

1 participant