mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Stop removing temporary test data after tests.
This commit is contained in:
parent
d06ede265d
commit
db57e82afe
@ -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()
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user