mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +00:00
asyncio: Enable the debug mode of event loops when the PYTHONASYNCIODEBUG
environment variable is set
This commit is contained in:
parent
d6de5d8455
commit
7b7120e159
6 changed files with 11 additions and 14 deletions
|
@ -445,8 +445,6 @@ class UnixReadPipeTransportTests(test_utils.TestCase):
|
|||
self.assertEqual(2, sys.getrefcount(self.protocol),
|
||||
pprint.pformat(gc.get_referrers(self.protocol)))
|
||||
self.assertIsNone(tr._loop)
|
||||
self.assertEqual(5, sys.getrefcount(self.loop),
|
||||
pprint.pformat(gc.get_referrers(self.loop)))
|
||||
|
||||
def test__call_connection_lost_with_err(self):
|
||||
tr = unix_events._UnixReadPipeTransport(
|
||||
|
@ -462,8 +460,6 @@ class UnixReadPipeTransportTests(test_utils.TestCase):
|
|||
self.assertEqual(2, sys.getrefcount(self.protocol),
|
||||
pprint.pformat(gc.get_referrers(self.protocol)))
|
||||
self.assertIsNone(tr._loop)
|
||||
self.assertEqual(5, sys.getrefcount(self.loop),
|
||||
pprint.pformat(gc.get_referrers(self.loop)))
|
||||
|
||||
|
||||
class UnixWritePipeTransportTests(test_utils.TestCase):
|
||||
|
@ -731,8 +727,6 @@ class UnixWritePipeTransportTests(test_utils.TestCase):
|
|||
self.assertEqual(2, sys.getrefcount(self.protocol),
|
||||
pprint.pformat(gc.get_referrers(self.protocol)))
|
||||
self.assertIsNone(tr._loop)
|
||||
self.assertEqual(5, sys.getrefcount(self.loop),
|
||||
pprint.pformat(gc.get_referrers(self.loop)))
|
||||
|
||||
def test__call_connection_lost_with_err(self):
|
||||
tr = unix_events._UnixWritePipeTransport(
|
||||
|
@ -747,8 +741,6 @@ class UnixWritePipeTransportTests(test_utils.TestCase):
|
|||
self.assertEqual(2, sys.getrefcount(self.protocol),
|
||||
pprint.pformat(gc.get_referrers(self.protocol)))
|
||||
self.assertIsNone(tr._loop)
|
||||
self.assertEqual(5, sys.getrefcount(self.loop),
|
||||
pprint.pformat(gc.get_referrers(self.loop)))
|
||||
|
||||
def test_close(self):
|
||||
tr = unix_events._UnixWritePipeTransport(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue