diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2014-05-27 18:24:43 (GMT) |
---|---|---|
committer | Andrew Svetlov <andrew.svetlov@gmail.com> | 2014-05-27 18:24:43 (GMT) |
commit | 3207a03035deabbff8a68f4f29dc33d1da944801 (patch) | |
tree | cb2be9808649bd27f0ec1ec810c55597d75d06aa /Lib/test/test_asyncio | |
parent | 0a4d13e87e0272085ed920b284f7245f01137cb3 (diff) | |
download | cpython-3207a03035deabbff8a68f4f29dc33d1da944801.zip cpython-3207a03035deabbff8a68f4f29dc33d1da944801.tar.gz cpython-3207a03035deabbff8a68f4f29dc33d1da944801.tar.bz2 |
Fix for raising exception not derived from BaseException in _SelectorSslTransport.resume_reading
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r-- | Lib/test/test_asyncio/test_selector_events.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_selector_events.py b/Lib/test/test_asyncio/test_selector_events.py index 0735237..d7fafab 100644 --- a/Lib/test/test_asyncio/test_selector_events.py +++ b/Lib/test/test_asyncio/test_selector_events.py @@ -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() |