Commits

Georg Brandl committed 3b4406a

Do proper cleanup of generated files.

Comments (0)

Files changed (3)

tests/test_env.py

 
 def teardown_module():
     app.cleanup()
+    (test_root / 'generated').rmtree()
 
 def warning_emitted(file, text):
     for warning in warnings:

tests/test_i18n.py

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

tests/test_theming.py

 
 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'})