summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-09-02 10:20:47 -0400
committerNed Batchelder <ned@nedbatchelder.com>2012-09-02 10:20:47 -0400
commit3b1ced3593bcbca43c9485ce5ead5fe5f58fecc5 (patch)
treec0eeb6add313e8130481a0537fbd5a1c3e91776b /igor.py
parenta420cbfc39ad1b303542a191f2630255a27a4d9d (diff)
downloadpython-coveragepy-git-3b1ced3593bcbca43c9485ce5ead5fe5f58fecc5.tar.gz
Don't attempt the C extension under PyPy.
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/igor.py b/igor.py
index a4fd8ab5..b144573b 100644
--- a/igor.py
+++ b/igor.py
@@ -38,6 +38,9 @@ def do_test_with_tracer(args):
label = "with Python tracer"
else:
label = "with C tracer"
+ if os.environ.get("COVERAGE_NO_EXTENSION"):
+ print("Skipping tests, no C extension in this environment")
+ return
print_banner(label)
os.environ["COVERAGE_TEST_TRACER"] = tracer
nose_args = ["nosetests"] + args[1:]