summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fileio.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-08-02 12:17:49 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-08-02 12:17:49 (GMT)
commit0dcd80a6c06d0fa1b1250e33e868b196d6d80efc (patch)
tree1a50131cf0cd83f1899ce13aed21ed8d045a767e /Lib/test/test_fileio.py
parentce17f764757306cdcdf1555c67dd0eed8e6bca8a (diff)
downloadcpython-0dcd80a6c06d0fa1b1250e33e868b196d6d80efc.zip
cpython-0dcd80a6c06d0fa1b1250e33e868b196d6d80efc.tar.gz
cpython-0dcd80a6c06d0fa1b1250e33e868b196d6d80efc.tar.bz2
Issue #20557: Use specific asserts in io tests.
Diffstat (limited to 'Lib/test/test_fileio.py')
-rw-r--r--Lib/test/test_fileio.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py
index fe5da69..a4fd20d 100644
--- a/Lib/test/test_fileio.py
+++ b/Lib/test/test_fileio.py
@@ -113,15 +113,15 @@ class AutoFileTests(unittest.TestCase):
def testErrors(self):
f = self.f
- self.assertTrue(not f.isatty())
- self.assertTrue(not f.closed)
+ self.assertFalse(f.isatty())
+ self.assertFalse(f.closed)
#self.assertEqual(f.name, TESTFN)
self.assertRaises(ValueError, f.read, 10) # Open for reading
f.close()
self.assertTrue(f.closed)
f = _FileIO(TESTFN, 'r')
self.assertRaises(TypeError, f.readinto, "")
- self.assertTrue(not f.closed)
+ self.assertFalse(f.closed)
f.close()
self.assertTrue(f.closed)