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 | 5d60702abadc8822672f490c9a96fb3fc7772c1b (patch) | |
tree | d4586d9ce2bb935e8dff29df31d3c01cc7ba4920 /igor.py | |
parent | 47f4965f0a683a73651bda7cb9cba768d28131c4 (diff) | |
download | python-coveragepy-5d60702abadc8822672f490c9a96fb3fc7772c1b.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) |