Addressing comments to simplify test case.

This commit is contained in:
Seth Sims 2020-11-02 09:19:47 -05:00
parent d8bf6653c5
commit ece481137a
1 changed files with 1 additions and 4 deletions

View File

@ -892,10 +892,7 @@ class TestNamedTemporaryFile(BaseTestCase):
fd.write(b''.join(lines))
fd.seek(0)
for i, l in enumerate(lines):
self.assertEqual(l, next(fd))
self.assertEqual(i, len(lines) - 1)
self.assertEqual(list(fd), lines)
with self.assertRaises(StopIteration):
next(fd)