summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests/cases.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/staticfiles_tests/cases.py')
-rw-r--r--tests/staticfiles_tests/cases.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/staticfiles_tests/cases.py b/tests/staticfiles_tests/cases.py
index 537fbac6a0..2305b34527 100644
--- a/tests/staticfiles_tests/cases.py
+++ b/tests/staticfiles_tests/cases.py
@@ -7,7 +7,6 @@ from django.conf import settings
from django.core.management import call_command
from django.template import Context, Template
from django.test import SimpleTestCase, override_settings
-from django.utils.encoding import force_text
from .settings import TEST_SETTINGS
@@ -20,7 +19,7 @@ class BaseStaticFilesMixin:
def assertFileContains(self, filepath, text):
self.assertIn(
text,
- self._get_file(force_text(filepath)),
+ self._get_file(filepath),
"'%s' not in '%s'" % (text, filepath),
)