File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Lib/test/test_unittest/testmock Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,9 @@ async def main():
219
219
run (main ())
220
220
221
221
self .assertTrue (iscoroutinefunction (spec ))
222
+ self .assertTrue (inspect .iscoroutinefunction (spec ))
222
223
self .assertTrue (asyncio .iscoroutine (awaitable ))
224
+ self .assertTrue (inspect .iscoroutine (awaitable ))
223
225
self .assertEqual (spec .await_count , 1 )
224
226
self .assertEqual (spec .await_args , call (1 , 2 , c = 3 ))
225
227
self .assertEqual (spec .await_args_list , [call (1 , 2 , c = 3 )])
@@ -240,7 +242,9 @@ async def test_async():
240
242
self .assertIsInstance (mock_method .mock , AsyncMock )
241
243
242
244
self .assertTrue (iscoroutinefunction (mock_method ))
245
+ self .assertTrue (inspect .iscoroutinefunction (mock_method ))
243
246
self .assertTrue (asyncio .iscoroutine (awaitable ))
247
+ self .assertTrue (inspect .iscoroutine (awaitable ))
244
248
self .assertTrue (inspect .isawaitable (awaitable ))
245
249
246
250
# Verify the default values during mock setup
You can’t perform that action at this time.
0 commit comments