Kaydet (Commit) 952ce778 authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Fixed a test failure under Windows and Python 2.

üst a8fe1241
...@@ -106,7 +106,8 @@ class BaseCollectionTestCase(BaseStaticFilesTestCase): ...@@ -106,7 +106,8 @@ class BaseCollectionTestCase(BaseStaticFilesTestCase):
self.patched_settings = self.settings(STATIC_ROOT=temp_dir) self.patched_settings = self.settings(STATIC_ROOT=temp_dir)
self.patched_settings.enable() self.patched_settings.enable()
self.run_collectstatic() 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): def tearDown(self):
self.patched_settings.disable() self.patched_settings.disable()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment