Commits

Georg Brandl  committed 3b4406a

Do proper cleanup of generated files.

  • Participants
  • Parent commits aa7b4aa

Comments (0)

Files changed (3)

File tests/test_env.py

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

File 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):

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