diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-09 07:23:32 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-09 07:23:32 -0400 |
commit | f72ee80a12af6d90172e1af954d0235c77ca7b51 (patch) | |
tree | b50e8e0d278cb28eec36b533a375047acca90523 /igor.py | |
parent | 1aaf6467eef1eceeb6960f3d5c60e5ed8936b070 (diff) | |
download | python-coveragepy-git-f72ee80a12af6d90172e1af954d0235c77ca7b51.tar.gz |
Make PyContracts disablable during debugging.
Diffstat (limited to 'igor.py')
-rw-r--r-- | igor.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -79,7 +79,8 @@ def run_tests(tracer, *nose_args): print(msg) return - os.environ['COVERAGE_TESTING'] = "True" + if 'COVERAGE_TESTING' not in os.environ: + os.environ['COVERAGE_TESTING'] = "True" print_banner(label) nose_args = ["nosetests"] + list(nose_args) nose.core.main(argv=nose_args) |