summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_io.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-04-10 00:22:16 (GMT)
committerGuido van Rossum <guido@python.org>2007-04-10 00:22:16 (GMT)
commit141f767d4665d867ee370362ad4481da29edfc95 (patch)
treea99dacb5d3bd3459d2152092e4f09af8ea4d1dee /Lib/test/test_io.py
parentebea9beab34d9c7552764c071b0d7fdb4744092b (diff)
downloadcpython-141f767d4665d867ee370362ad4481da29edfc95.zip
cpython-141f767d4665d867ee370362ad4481da29edfc95.tar.gz
cpython-141f767d4665d867ee370362ad4481da29edfc95.tar.bz2
More cleanup. Renamed BlockingIO to BlockingIOError.
Removed unused _PyFileIO class. Changed inheritance structure. TODO: do the same kinds of things to TextIO.
Diffstat (limited to 'Lib/test/test_io.py')
-rw-r--r--Lib/test/test_io.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/Lib/test/test_io.py b/Lib/test/test_io.py
index 5a4745f..2ca1e70 100644
--- a/Lib/test/test_io.py
+++ b/Lib/test/test_io.py
@@ -64,7 +64,7 @@ class MockNonBlockWriterIO(io.RawIOBase):
self._write_stack.append(b[:])
n = self.bs.pop(0)
if (n < 0):
- raise io.BlockingIO(0, "test blocking", -n)
+ raise io.BlockingIOError(0, "test blocking", -n)
else:
return n
@@ -145,20 +145,6 @@ class IOTest(unittest.TestCase):
self.read_ops(f)
f.close()
- def test_PyFileIO(self):
- f = io._PyFileIO(test_support.TESTFN, "w")
- self.assertEqual(f.readable(), False)
- self.assertEqual(f.writable(), True)
- self.assertEqual(f.seekable(), True)
- self.write_ops(f)
- f.close()
- f = io._PyFileIO(test_support.TESTFN, "r")
- self.assertEqual(f.readable(), True)
- self.assertEqual(f.writable(), False)
- self.assertEqual(f.seekable(), True)
- self.read_ops(f)
- f.close()
-
class MemorySeekTestMixin: