Refs #23919 -- Removed misc references to Python 2.

This commit is contained in:
Tim Graham 2017-01-21 20:02:00 -05:00 committed by GitHub
parent c22212220a
commit d170c63351
34 changed files with 40 additions and 167 deletions

View file

@ -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)