summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests/cases.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-01-24 12:22:42 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-24 18:45:54 +0100
commit2366100872ec17dde06abc63c1ad74dcf746b134 (patch)
treed6b5c393f8c2c2d01bcbb2295759f14bbf3aac05 /tests/staticfiles_tests/cases.py
parent5b95d421f7ab8deadaf3c1ad3f341bdfc85bfca4 (diff)
Removed unneeded force_text calls in the test suite
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),
)