summaryrefslogtreecommitdiff
path: root/tests/files
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-21 20:02:00 -0500
committerGitHub <noreply@github.com>2017-01-21 20:02:00 -0500
commitd170c63351944fd91b2206d10f89e7ff75b53b76 (patch)
treee2be66471ab071fa0ce75097d66650b650c53853 /tests/files
parentc22212220a7900173358a1f16179dcfc9e03de78 (diff)
downloaddjango-d170c63351944fd91b2206d10f89e7ff75b53b76.tar.gz
Refs #23919 -- Removed misc references to Python 2.
Diffstat (limited to 'tests/files')
-rw-r--r--tests/files/tests.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/files/tests.py b/tests/files/tests.py
index f7d05574d2..4036fc5e79 100644
--- a/tests/files/tests.py
+++ b/tests/files/tests.py
@@ -139,9 +139,6 @@ class FileTests(unittest.TestCase):
test_file.seek(0)
wrapper = TextIOWrapper(test_file, 'utf-8', newline='\n')
self.assertEqual(wrapper.read(), content)
- # The following seek() call is required on Windows Python 2 when
- # switching from reading to writing.
- wrapper.seek(0, 2)
wrapper.write(content)
wrapper.seek(0)
self.assertEqual(wrapper.read(), content * 2)