From bdc12d999d460fb0036e315bf001250bebf6347d Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 30 Nov 2012 07:23:23 -0500 Subject: Igor sets the tracers from args, use that during coverage measurement. --- igor.py | 2 +- test/farm/run/run_timid.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/igor.py b/igor.py index b74435ef..8aa64ed7 100644 --- a/igor.py +++ b/igor.py @@ -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 -- cgit v1.2.1