FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Import local plugins during combine by itscloud0 · Pull Request #2212 · coveragepy/coveragepy · GitHub

Import local plugins during combine - #2212

Open
itscloud0 wants to merge 1 commit into
coveragepy:mainfrom
itscloud0:fix-1979-local-plugin-combine
Open

Import local plugins during combine#2212
itscloud0 wants to merge 1 commit into
coveragepy:mainfrom
itscloud0:fix-1979-local-plugin-combine

Conversation

itscloud0 commented Jun 30, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Fixes #1979.

Problem

coverage combine reloads configured plugins before it makes the current working directory importable. Projects that keep a local plugin next to pyproject.toml can run coverage run, but coverage combine then fails with ModuleNotFoundError for that same plugin.

Solution

Add the current directory to sys.path for the combine command before plugin loading starts, matching the existing behavior used by the reporting commands.

nedbat commented Jun 30, 2026

Copy link
Copy Markdown
Member

I want to talk to you, and I want you to stop putting "Verification" steps in these PRs.

itscloud0 marked this pull request as ready for review June 30, 2026 17:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

coverage combine cannot find local plugin files

2 participants


Back | FazBrowse Home | New Git URL