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 | d50b8ef1124ebcc2c0b77cfaa8d7a6a5e65f5b5d (patch) | |
| tree | 42c95110851429a324b43c77ade579c29618ce06 /test/test_farm.py | |
| parent | 454317ea060b236d86957a38afcbe595eb1f261a (diff) | |
| download | python-coveragepy-d50b8ef1124ebcc2c0b77cfaa8d7a6a5e65f5b5d.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 1576dfe..5a2cf8a 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. |
