mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Fix for raising exception not derived from BaseException in _SelectorSslTransport.resume_reading
This commit is contained in:
parent
0a4d13e87e
commit
3207a03035
2 changed files with 5 additions and 1 deletions
|
@ -711,6 +711,8 @@ class SelectorSocketTransportTests(unittest.TestCase):
|
|||
tr.resume_reading()
|
||||
self.assertFalse(tr._paused)
|
||||
self.loop.assert_reader(7, tr._read_ready)
|
||||
with self.assertRaises(RuntimeError):
|
||||
tr.resume_reading()
|
||||
|
||||
def test_read_ready(self):
|
||||
transport = _SelectorSocketTransport(
|
||||
|
@ -1125,6 +1127,8 @@ class SelectorSslTransportTests(unittest.TestCase):
|
|||
tr.resume_reading()
|
||||
self.assertFalse(tr._paused)
|
||||
self.loop.assert_reader(1, tr._read_ready)
|
||||
with self.assertRaises(RuntimeError):
|
||||
tr.resume_reading()
|
||||
|
||||
def test_write(self):
|
||||
transport = self._make_one()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue