Issue #20557: Use specific asserts in io tests.

This commit is contained in:
Serhiy Storchaka 2015-08-02 15:18:53 +03:00
commit 44427added
5 changed files with 20 additions and 18 deletions

View file

@ -83,8 +83,8 @@ class AutoFileTests:
def testErrors(self):
f = self.f
self.assertEqual(f.name, TESTFN)
self.assertTrue(not f.isatty())
self.assertTrue(not f.closed)
self.assertFalse(f.isatty())
self.assertFalse(f.closed)
if hasattr(f, "readinto"):
self.assertRaises((OSError, TypeError), f.readinto, "")