From ef98b65f29a3eaf0a56c7414514b03f35edd1356 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 16 Mar 2009 23:30:17 +0100 Subject: [PATCH] Do proper cleanup of generated files. --- tests/test_env.py | 1 + tests/test_i18n.py | 4 ++++ tests/test_theming.py | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/tests/test_env.py b/tests/test_env.py index a06656d69..ba0a916ff 100644 --- a/tests/test_env.py +++ b/tests/test_env.py @@ -26,6 +26,7 @@ def setup_module(): def teardown_module(): app.cleanup() + (test_root / 'generated').rmtree() def warning_emitted(file, text): for warning in warnings: diff --git a/tests/test_i18n.py b/tests/test_i18n.py index 94648727e..61dbef84f 100644 --- a/tests/test_i18n.py +++ b/tests/test_i18n.py @@ -11,6 +11,10 @@ from util import * +def teardown_module(): + (test_root / '_build').rmtree() + (test_root / 'generated').rmtree() + @with_app(confoverrides={'language': 'de'}) def test_i18n(app): diff --git a/tests/test_theming.py b/tests/test_theming.py index 349a9ce4a..cf450c02b 100644 --- a/tests/test_theming.py +++ b/tests/test_theming.py @@ -16,6 +16,10 @@ from util import * from sphinx.theming import Theme, ThemeError +def teardown_module(): + (test_root / '_build').rmtree() + (test_root / 'generated').rmtree() + @with_app(confoverrides={'html_theme': 'ziptheme', 'html_theme_options.testopt': 'foo'})