mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
asyncio: Fix with github
See https://github.com/python/asyncio/pull/295 for details
This commit is contained in:
parent
a211a7a0e7
commit
0f3c9765d4
2 changed files with 15 additions and 3 deletions
|
@ -782,9 +782,10 @@ class BaseEventLoopTests(test_utils.TestCase):
|
|||
self.loop._selector.select.return_value = (event_sentinel,)
|
||||
|
||||
for i in range(1, 3):
|
||||
self.loop.call_soon(self.loop.stop)
|
||||
self.loop.run_forever()
|
||||
self.assertEqual(callcount, 1)
|
||||
with self.subTest('Loop %d/2' % i):
|
||||
self.loop.call_soon(self.loop.stop)
|
||||
self.loop.run_forever()
|
||||
self.assertEqual(callcount, 1)
|
||||
|
||||
def test_run_once(self):
|
||||
# Simple test for test_utils.run_once(). It may seem strange
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue