1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed staticfiles test on Windows; refs #23986.

This commit is contained in:
Tim Graham 2015-03-11 14:48:19 -04:00
parent ccff08c194
commit 389baccac5

View File

@ -302,7 +302,7 @@ class TestCollectionClear(CollectionTestCase):
self.assertFileNotFound('cleared.txt') self.assertFileNotFound('cleared.txt')
def test_dir_not_exists(self, **kwargs): def test_dir_not_exists(self, **kwargs):
shutil.rmtree(settings.STATIC_ROOT) shutil.rmtree(six.text_type(settings.STATIC_ROOT))
super(TestCollectionClear, self).run_collectstatic(clear=True) super(TestCollectionClear, self).run_collectstatic(clear=True)