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
commit5d60702abadc8822672f490c9a96fb3fc7772c1b (patch)
treed4586d9ce2bb935e8dff29df31d3c01cc7ba4920 /igor.py
parent47f4965f0a683a73651bda7cb9cba768d28131c4 (diff)
downloadpython-coveragepy-5d60702abadc8822672f490c9a96fb3fc7772c1b.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 4ea65fa..b81692d 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)