Skip to content

Fix/stop coverage pipeline fail issue#1929

Merged
nathanjmcdougall merged 3 commits into
mainfrom
fix/stop-coverage-pipeline-fail-issue
May 7, 2026
Merged

Fix/stop coverage pipeline fail issue#1929
nathanjmcdougall merged 3 commits into
mainfrom
fix/stop-coverage-pipeline-fail-issue

Conversation

@nathanjmcdougall

Copy link
Copy Markdown
Collaborator

No description provided.

@codspeed-hq

codspeed-hq Bot commented May 7, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 3 untouched benchmarks


Comparing fix/stop-coverage-pipeline-fail-issue (8b7c6ba) with main (f584a25)

Open in CodSpeed

When python -m usethis runs in a subprocess (e.g. during
test_install tests), coverage records execution under the bare path
__main__.py rather than src/usethis/__main__.py. During XML report
generation, coverage cannot resolve that bare path back to a source
file, raising NoSource.

In pytest 8.x this was silently swallowed. In pytest 9.0, pluggy
surfaces teardown warnings as PluggyTeardownRaisedWarning, causing
pytest to exit with code 3 (INTERNALERROR) even though all tests pass.

Adding __main__.py to the coverage omit list prevents coverage from
attempting to report on that misnamed entry.
@nathanjmcdougall nathanjmcdougall force-pushed the fix/stop-coverage-pipeline-fail-issue branch from d9864a9 to 8b7c6ba Compare May 7, 2026 22:28
@codecov

codecov Bot commented May 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@nathanjmcdougall nathanjmcdougall merged commit af5574e into main May 7, 2026
19 checks passed
@nathanjmcdougall nathanjmcdougall deleted the fix/stop-coverage-pipeline-fail-issue branch May 7, 2026 22:32
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