summaryrefslogtreecommitdiff
path: root/tests/files
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-12-01 11:38:01 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-18 16:21:28 +0100
commitc716fe87821df00f9f03ecc761c914d1682591a2 (patch)
tree0436706cdb190acbc76fb5fcf6d66f16e09fafa3 /tests/files
parente63d98b7beb16d1410168a2315cbe04c43c9c80d (diff)
downloaddjango-c716fe87821df00f9f03ecc761c914d1682591a2.tar.gz
Refs #23919 -- Removed six.PY2/PY3 usage
Thanks Tim Graham for the review.
Diffstat (limited to 'tests/files')
-rw-r--r--tests/files/tests.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/files/tests.py b/tests/files/tests.py
index 276cbed544..a0ff3d4782 100644
--- a/tests/files/tests.py
+++ b/tests/files/tests.py
@@ -181,10 +181,7 @@ class ContentFileTestCase(unittest.TestCase):
retrieved content is of the same type.
"""
self.assertIsInstance(ContentFile(b"content").read(), bytes)
- if six.PY3:
- self.assertIsInstance(ContentFile("español").read(), six.text_type)
- else:
- self.assertIsInstance(ContentFile("español").read(), bytes)
+ self.assertIsInstance(ContentFile("español").read(), six.text_type)
class DimensionClosingBug(unittest.TestCase):