summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-09 07:23:32 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-09 07:23:32 -0400
commitf72ee80a12af6d90172e1af954d0235c77ca7b51 (patch)
treeb50e8e0d278cb28eec36b533a375047acca90523 /igor.py
parent1aaf6467eef1eceeb6960f3d5c60e5ed8936b070 (diff)
downloadpython-coveragepy-git-f72ee80a12af6d90172e1af954d0235c77ca7b51.tar.gz
Make PyContracts disablable during debugging.
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/igor.py b/igor.py
index 4ea65fad..b81692dd 100644
--- a/igor.py
+++ b/igor.py
@@ -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)