mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
asyncio: Add Transport.is_closing()
See https://github.com/python/asyncio/pull/291 for details.
This commit is contained in:
parent
da32d26ab9
commit
5bb1afb332
11 changed files with 36 additions and 14 deletions
|
@ -61,7 +61,7 @@ class SubprocessTransportTests(test_utils.TestCase):
|
|||
self.assertTrue(protocol.connection_lost.called)
|
||||
self.assertEqual(protocol.connection_lost.call_args[0], (None,))
|
||||
|
||||
self.assertFalse(transport._closed)
|
||||
self.assertFalse(transport.is_closing())
|
||||
self.assertIsNone(transport._loop)
|
||||
self.assertIsNone(transport._proc)
|
||||
self.assertIsNone(transport._protocol)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue