Skip to content
Merged
Prev Previous commit
Next Next commit
remove
  • Loading branch information
Wulian233 authored Aug 10, 2024
commit 840191d6c0772517e5d851dcb1690342f737ed8a
2 changes: 1 addition & 1 deletion Lib/unittest/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _is_async_obj(obj):

def _is_async_func(func):
if getattr(func, '__code__', None):
return inspect.iscoroutinefunction(func)
return iscoroutinefunction(func)
else:
return False

Expand Down