mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
bpo-44017: Update test_contextlib_async not to emit DeprecationWarn (GH-25918)
This commit is contained in:
parent
985ac01637
commit
698e9a8211
2 changed files with 6 additions and 9 deletions
|
|
@ -173,8 +173,7 @@ class AsyncMockTest(unittest.TestCase):
|
|||
|
||||
def test_future_isfuture(self):
|
||||
loop = asyncio.new_event_loop()
|
||||
asyncio.set_event_loop(loop)
|
||||
fut = asyncio.Future()
|
||||
fut = loop.create_future()
|
||||
loop.stop()
|
||||
loop.close()
|
||||
mock = AsyncMock(fut)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue