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.5.0rc1~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b064f1e94f615ae6a9cfa2ce288b1b102dc9d870;p=thirdparty%2FPython%2Fcpython.git Issue #20557: Use specific asserts in io tests. --- b064f1e94f615ae6a9cfa2ce288b1b102dc9d870 diff --cc Lib/test/test_fileio.py index 0f8310ce2b6f,a4fd20dcf242..59cc38f6ca2d --- 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)