From: Serhiy Storchaka Date: Sun, 2 Aug 2015 12:18:28 +0000 (+0300) Subject: Issue #20557: Use specific asserts in io tests. X-Git-Tag: v3.6.0a1~1859^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b064f1e94f615ae6a9cfa2ce288b1b102dc9d870;p=python Issue #20557: Use specific asserts in io tests. --- b064f1e94f615ae6a9cfa2ce288b1b102dc9d870 diff --cc Lib/test/test_fileio.py index 0f8310ce2b,a4fd20dcf2..59cc38f6ca --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@@ -183,9 -119,9 +183,9 @@@ class AutoFileTests self.assertRaises(ValueError, f.read, 10) # Open for reading f.close() self.assertTrue(f.closed) - f = _FileIO(TESTFN, 'r') + f = self.FileIO(TESTFN, 'r') self.assertRaises(TypeError, f.readinto, "") - self.assertTrue(not f.closed) + self.assertFalse(f.closed) f.close() self.assertTrue(f.closed)