summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests/test_management.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/staticfiles_tests/test_management.py')
-rw-r--r--tests/staticfiles_tests/test_management.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/staticfiles_tests/test_management.py b/tests/staticfiles_tests/test_management.py
index e8c00eb3f5..7d17f2abe1 100644
--- a/tests/staticfiles_tests/test_management.py
+++ b/tests/staticfiles_tests/test_management.py
@@ -166,7 +166,7 @@ class TestCollectionClear(CollectionTestCase):
self.assertFileNotFound('cleared.txt')
def test_dir_not_exists(self, **kwargs):
- shutil.rmtree(six.text_type(settings.STATIC_ROOT))
+ shutil.rmtree(settings.STATIC_ROOT)
super(TestCollectionClear, self).run_collectstatic(clear=True)
@override_settings(STATICFILES_STORAGE='staticfiles_tests.storage.PathNotImplementedStorage')
@@ -210,7 +210,7 @@ class TestInteractiveMessages(CollectionTestCase):
def test_no_warning_when_staticdir_does_not_exist(self):
stdout = six.StringIO()
- shutil.rmtree(six.text_type(settings.STATIC_ROOT))
+ shutil.rmtree(settings.STATIC_ROOT)
call_command('collectstatic', interactive=True, stdout=stdout)
output = force_text(stdout.getvalue())
self.assertNotIn(self.overwrite_warning_msg, output)
@@ -222,7 +222,7 @@ class TestInteractiveMessages(CollectionTestCase):
static_dir = tempfile.mkdtemp(prefix='collectstatic_empty_staticdir_test')
with override_settings(STATIC_ROOT=static_dir):
call_command('collectstatic', interactive=True, stdout=stdout)
- shutil.rmtree(six.text_type(static_dir))
+ shutil.rmtree(static_dir)
output = force_text(stdout.getvalue())
self.assertNotIn(self.overwrite_warning_msg, output)
self.assertNotIn(self.delete_warning_msg, output)