Skip to content

Commit

Permalink
Fix Coverage loading a custom config file (#10670)
Browse files Browse the repository at this point in the history
PathGlob glob param expects a collection (iterable) of strings, passing it a string prevents it from working properly.

[ci skip-rust]
  • Loading branch information
asherf committed Aug 22, 2020
1 parent ca962e5 commit ff2bec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/pants/backend/python/rules/coverage.py
Expand Up @@ -170,7 +170,7 @@ async def create_coverage_config(coverage: CoverageSubsystem) -> CoverageConfig:
config_contents = await Get(
DigestContents,
PathGlobs(
globs=coverage.config,
globs=tuple(coverage.config,),
glob_match_error_behavior=GlobMatchErrorBehavior.error,
description_of_origin=f"the option `--{coverage.options_scope}-config`",
),
Expand Down

0 comments on commit ff2bec3

Please sign in to comment.