Re-enabled the cleanup of STATIC_ROOT in the staticfiles tests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17243 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-12-22 20:29:18 +00:00
parent 2f18d8b4b0
commit 03eb2907d5
1 changed files with 2 additions and 2 deletions

View File

@ -103,8 +103,8 @@ class BaseCollectionTestCase(BaseStaticFilesTestCase):
settings.STATIC_ROOT = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR']) settings.STATIC_ROOT = tempfile.mkdtemp(dir=os.environ['DJANGO_TEST_TEMP_DIR'])
self.run_collectstatic() self.run_collectstatic()
# Use our own error handler that can handle .svn dirs on Windows # Use our own error handler that can handle .svn dirs on Windows
#self.addCleanup(shutil.rmtree, settings.STATIC_ROOT, self.addCleanup(shutil.rmtree, settings.STATIC_ROOT,
# ignore_errors=True, onerror=rmtree_errorhandler) ignore_errors=True, onerror=rmtree_errorhandler)
def tearDown(self): def tearDown(self):
settings.STATIC_ROOT = self.old_root settings.STATIC_ROOT = self.old_root