File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252
5353# ===== Template substitutions end =====
5454
55+
5556class BazelBinaryInfoModule (types .ModuleType ):
5657 BUILD_DATA_FILE = BUILD_DATA_FILE
5758
@@ -335,8 +336,11 @@ def _maybe_collect_coverage(enable):
335336 # We need for coveragepy to use relative paths. This can only be configured
336337 # using an rc file.
337338 rcfile_name = os .path .join (coverage_dir , ".coveragerc_{}" .format (unique_id ))
338- disable_warnings = ('disable_warnings = module-not-imported, no-data-collected'
339- if COVERAGE_INSTRUMENTED else '' )
339+ disable_warnings = (
340+ "disable_warnings = module-not-imported, no-data-collected"
341+ if COVERAGE_INSTRUMENTED
342+ else ""
343+ )
340344 print_verbose_coverage ("coveragerc file:" , rcfile_name )
341345 with open (rcfile_name , "w" ) as rcfile :
342346 rcfile .write (
You can’t perform that action at this time.
0 commit comments