mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
PEP 3151 / issue #12555: reworking the OS and IO exception hierarchy.
This commit is contained in:
parent
983b1434bd
commit
6b4883dec0
21 changed files with 689 additions and 454 deletions
|
|
@ -2643,12 +2643,6 @@ class MiscIOTest(unittest.TestCase):
|
|||
|
||||
def test_blockingioerror(self):
|
||||
# Various BlockingIOError issues
|
||||
self.assertRaises(TypeError, self.BlockingIOError)
|
||||
self.assertRaises(TypeError, self.BlockingIOError, 1)
|
||||
self.assertRaises(TypeError, self.BlockingIOError, 1, 2, 3, 4)
|
||||
self.assertRaises(TypeError, self.BlockingIOError, 1, "", None)
|
||||
b = self.BlockingIOError(1, "")
|
||||
self.assertEqual(b.characters_written, 0)
|
||||
class C(str):
|
||||
pass
|
||||
c = C("")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue