1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed a test failure under Windows and Python 2.

This commit is contained in:
Aymeric Augustin 2015-02-23 18:36:15 +01:00
parent a8fe12417f
commit 952ce778c6

View File

@ -106,7 +106,8 @@ class BaseCollectionTestCase(BaseStaticFilesTestCase):
self.patched_settings = self.settings(STATIC_ROOT=temp_dir)
self.patched_settings.enable()
self.run_collectstatic()
self.addCleanup(shutil.rmtree, temp_dir)
# Same comment as in runtests.teardown.
self.addCleanup(shutil.rmtree, six.text_type(temp_dir))
def tearDown(self):
self.patched_settings.disable()