Stop removing temporary test data after tests.

This commit is contained in:
Georg Brandl 2014-11-06 09:10:32 +01:00
parent d06ede265d
commit db57e82afe
2 changed files with 0 additions and 5 deletions

View File

@ -34,10 +34,6 @@ default_settings = {'builddir': tempdir / 'websupport',
'warning': StringIO()}
def teardown_module():
(tempdir / 'websupport').rmtree(True)
def with_support(*args, **kwargs):
"""Make a WebSupport object and pass it the test."""
settings = default_settings.copy()

View File

@ -255,7 +255,6 @@ def with_tempdir(func):
def new_func(*args, **kwds):
new_tempdir = path(tempfile.mkdtemp(dir=tempdir))
func(new_tempdir, *args, **kwds)
new_tempdir.rmtree() # not when test fails...
new_func.__name__ = func.__name__
return new_func