summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-30 07:23:23 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-30 07:23:23 -0500
commit60725f119e787b19513cf9538d8706f55e299d3c (patch)
tree1170f3d4858992ddc59d1e3de5519e86917438fd
parent83d8d70f2a292322f1ccfd75a00b15d9c8164abb (diff)
downloadpython-coveragepy-60725f119e787b19513cf9538d8706f55e299d3c.tar.gz
Igor sets the tracers from args, use that during coverage measurement.
-rw-r--r--igor.py2
-rw-r--r--test/farm/run/run_timid.py14
2 files changed, 8 insertions, 8 deletions
diff --git a/igor.py b/igor.py
index b74435e..8aa64ed 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 b4f5134..f63ef63 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