diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-09 15:50:39 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-12-09 15:50:39 -0500 |
commit | d85f985433d351d8f80370d138368c8deefad47c (patch) | |
tree | c94442e7376657ac4e447658f672bd2be38be240 /test/test_farm.py | |
parent | 36ef251d6202102afd115084aacc868b9c520a21 (diff) | |
download | python-coveragepy-git-d85f985433d351d8f80370d138368c8deefad47c.tar.gz |
Get meta-coverage working on sub-processes.
Diffstat (limited to 'test/test_farm.py')
-rw-r--r-- | test/test_farm.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_farm.py b/test/test_farm.py index 1576dfe1..5a2cf8a8 100644 --- a/test/test_farm.py +++ b/test/test_farm.py @@ -6,6 +6,8 @@ from nose.plugins.skip import SkipTest sys.path.insert(0, os.path.split(__file__)[0]) # Force relative import for Py3k from backtest import run_command, execfile # pylint: disable=W0622 +from coverage.control import _TEST_NAME_FILE + def test_farm(clean_only=False): """A test-generating function for nose to find and run.""" @@ -65,6 +67,11 @@ class FarmTestCase(object): """Execute the test from the run.py file. """ + if _TEST_NAME_FILE: + f = open(_TEST_NAME_FILE, "w") + f.write(self.description.replace("/", "_")) + f.close() + cwd = self.cd(self.dir) # Prepare a dictionary of globals for the run.py files to use. |