Do proper cleanup of generated files.

This commit is contained in:
Georg Brandl 2009-03-16 23:30:17 +01:00
parent 32800b1762
commit ef98b65f29
3 changed files with 9 additions and 0 deletions

View File

@ -26,6 +26,7 @@ def setup_module():
def teardown_module(): def teardown_module():
app.cleanup() app.cleanup()
(test_root / 'generated').rmtree()
def warning_emitted(file, text): def warning_emitted(file, text):
for warning in warnings: for warning in warnings:

View File

@ -11,6 +11,10 @@
from util import * from util import *
def teardown_module():
(test_root / '_build').rmtree()
(test_root / 'generated').rmtree()
@with_app(confoverrides={'language': 'de'}) @with_app(confoverrides={'language': 'de'})
def test_i18n(app): def test_i18n(app):

View File

@ -16,6 +16,10 @@ from util import *
from sphinx.theming import Theme, ThemeError from sphinx.theming import Theme, ThemeError
def teardown_module():
(test_root / '_build').rmtree()
(test_root / 'generated').rmtree()
@with_app(confoverrides={'html_theme': 'ziptheme', @with_app(confoverrides={'html_theme': 'ziptheme',
'html_theme_options.testopt': 'foo'}) 'html_theme_options.testopt': 'foo'})