cleanup
This commit is contained in:
parent
8e4b05214a
commit
3b3626244e
|
@ -211,13 +211,17 @@ def _setup_coverage(reactor):
|
||||||
except ImportError:
|
except ImportError:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# this doesn't change the shell's notion of the environment, but
|
||||||
|
# it makes the test in process_startup() succeed, which is the
|
||||||
|
# goal here.
|
||||||
os.environ["COVERAGE_PROCESS_START"] = '.coveragerc'
|
os.environ["COVERAGE_PROCESS_START"] = '.coveragerc'
|
||||||
|
|
||||||
# maybe-start the global coverage, unless it already got started
|
# maybe-start the global coverage, unless it already got started
|
||||||
cov = coverage.process_startup()
|
cov = coverage.process_startup()
|
||||||
if cov is None:
|
if cov is None:
|
||||||
cov = coverage.process_startup.coverage
|
cov = coverage.process_startup.coverage
|
||||||
|
|
||||||
def write_coverage_data(*args, **kw):
|
def write_coverage_data():
|
||||||
"""
|
"""
|
||||||
Make sure that coverage has stopped; internally, it depends on
|
Make sure that coverage has stopped; internally, it depends on
|
||||||
ataxit handlers running which doesn't always happen (Twisted's
|
ataxit handlers running which doesn't always happen (Twisted's
|
||||||
|
|
Loading…
Reference in New Issue