mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #23919 -- Removed misc references to Python 2.
This commit is contained in:
parent
c22212220a
commit
d170c63351
34 changed files with 40 additions and 167 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue