mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
asyncio: Support PEP 492. Issue #24017.
This commit is contained in:
parent
d7e19bb566
commit
1af2bf75a2
6 changed files with 116 additions and 27 deletions
|
@ -61,7 +61,8 @@ class BaseEventLoopTests(test_utils.TestCase):
|
|||
NotImplementedError,
|
||||
self.loop._make_write_pipe_transport, m, m)
|
||||
gen = self.loop._make_subprocess_transport(m, m, m, m, m, m, m)
|
||||
self.assertRaises(NotImplementedError, next, iter(gen))
|
||||
with self.assertRaises(NotImplementedError):
|
||||
gen.send(None)
|
||||
|
||||
def test_close(self):
|
||||
self.assertFalse(self.loop.is_closed())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue