diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2011-07-14 11:12:03 -0400 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2011-07-14 11:12:03 -0400 |
commit | 52547788f4a3aabaf0fd7f77ad892bb976075db8 (patch) | |
tree | 949aa23f7a7dcf51eb6de2e6e3340e583bedc546 /functional_tests | |
parent | f45ed99204dfadc5a81496524fae5a9b0c6e19fb (diff) | |
parent | 7135e1a513f65902c0b10dc77e55a1f1a4ebf0d4 (diff) | |
download | nose-52547788f4a3aabaf0fd7f77ad892bb976075db8.tar.gz |
Merged in garyd/nose (pull request #4)
Diffstat (limited to 'functional_tests')
-rw-r--r-- | functional_tests/doc_tests/test_coverage_html/coverage_html_fixtures.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/functional_tests/doc_tests/test_coverage_html/coverage_html_fixtures.py b/functional_tests/doc_tests/test_coverage_html/coverage_html_fixtures.py index 2ee5666..6829dc2 100644 --- a/functional_tests/doc_tests/test_coverage_html/coverage_html_fixtures.py +++ b/functional_tests/doc_tests/test_coverage_html/coverage_html_fixtures.py @@ -1,10 +1,13 @@ import sys import os +import shutil from nose.plugins.skip import SkipTest from nose.plugins.cover import Coverage from nose.plugins.plugintest import munge_nose_output_for_doctest -_multiprocess_can_split_ = True +# This fixture is not reentrant because we have to cleanup the files that +# coverage produces once all tests have finished running. +_multiprocess_shared_ = True def setup_module(): try: @@ -14,3 +17,10 @@ def setup_module(): "plugin itself.") except ImportError: raise SkipTest("coverage module not available") + +def teardown_module(): + # Clean up the files produced by coverage + cover_html_dir = os.path.join(os.path.dirname(__file__), 'support', 'cover') + if os.path.exists(cover_html_dir): + shutil.rmtree(cover_html_dir) + |