mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #20557: Use specific asserts in io tests.
This commit is contained in:
parent
ce17f76475
commit
0dcd80a6c0
5 changed files with 20 additions and 18 deletions
|
@ -34,7 +34,7 @@ class BufferSizeTest:
|
|||
line = f.readline()
|
||||
self.assertEqual(line, s)
|
||||
line = f.readline()
|
||||
self.assertTrue(not line) # Must be at EOF
|
||||
self.assertFalse(line) # Must be at EOF
|
||||
f.close()
|
||||
finally:
|
||||
support.unlink(support.TESTFN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue