From ff2bec3efbf79a975d6fc0660018fa1cf5b5694d Mon Sep 17 00:00:00 2001 From: Asher Foa Date: Sat, 22 Aug 2020 15:29:45 -0700 Subject: [PATCH] Fix Coverage loading a custom config file (#10670) PathGlob glob param expects a collection (iterable) of strings, passing it a string prevents it from working properly. [ci skip-rust] --- src/python/pants/backend/python/rules/coverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/pants/backend/python/rules/coverage.py b/src/python/pants/backend/python/rules/coverage.py index 8a795d545de..d96d594b1bf 100644 --- a/src/python/pants/backend/python/rules/coverage.py +++ b/src/python/pants/backend/python/rules/coverage.py @@ -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`", ),