File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1414from distutils .core import Extension # pylint: disable=wrong-import-order
1515from distutils .command .build_ext import build_ext # pylint: disable=wrong-import-order
1616from distutils import errors # pylint: disable=wrong-import-order
17-
17+ import distutils .log # pylint: disable=wrong-import-order
18+
19+ # $set_env.py: COVERAGE_QUIETER - Set to remove some noise from test output.
20+ if bool (int (os .getenv ("COVERAGE_QUIETER" , "0" ))):
21+ # Distutils has its own mini-logging code, and it sets the level too high.
22+ # When I ask for --quiet when running tessts, I don't want to see warnings.
23+ old_set_verbosity = distutils .log .set_verbosity
24+ def better_set_verbosity (v ):
25+ """--quiet means no warnings!"""
26+ if v <= 0 :
27+ distutils .log .set_threshold (distutils .log .ERROR )
28+ else :
29+ old_set_verbosity (v )
30+ distutils .log .set_verbosity = better_set_verbosity
1831
1932# Get or massage our metadata. We exec coverage/version.py so we can avoid
2033# importing the product code into setup.py.
You can’t perform that action at this time.
0 commit comments