diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-30 07:23:23 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-30 07:23:23 -0500 |
commit | bdc12d999d460fb0036e315bf001250bebf6347d (patch) | |
tree | 3dd7f59698af3dd4fcfcad5a9c1d26679fbd926b | |
parent | 8600bdfd07e069e5f6b78631b14320cb49ee8457 (diff) | |
download | python-coveragepy-git-bdc12d999d460fb0036e315bf001250bebf6347d.tar.gz |
Igor sets the tracers from args, use that during coverage measurement.
-rw-r--r-- | igor.py | 2 | ||||
-rw-r--r-- | test/farm/run/run_timid.py | 14 |
2 files changed, 8 insertions, 8 deletions
@@ -63,7 +63,7 @@ def run_tests_with_coverage(args): finally: pth_file.close() - tracer = os.environ.get('COVERAGE_TEST_TRACER', 'c') + tracer = args[0] version = "%s%s" % sys.version_info[:2] suffix = "%s_%s" % (version, tracer) diff --git a/test/farm/run/run_timid.py b/test/farm/run/run_timid.py index b4f5134f..f63ef63c 100644 --- a/test/farm/run/run_timid.py +++ b/test/farm/run/run_timid.py @@ -1,11 +1,11 @@ -# Test that the --timid command line argument properly swaps the tracer function -# for a simpler one. +# Test that the --timid command line argument properly swaps the tracer +# function for a simpler one. # -# This is complicated by the fact that alltests.cmd will run the test suite -# twice for each version: once with a compiled C-based trace function, and once -# without it, to also test the Python trace function. So this test has to -# examine an environment variable set in alltests.cmd to know whether to expect -# to see the C trace function or not. +# This is complicated by the fact that the tests are run twice for each +# version: once with a compiled C-based trace function, and once without it, to +# also test the Python trace function. So this test has to examine an +# environment variable set in igor.py to know whether to expect to see the C +# trace function or not. import os |