Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
discovered while creating#94923
Bug report
importunittest.mockimportinspectimportasyncioimportsysdefmain():asyncdefdemo():passprint(f"{inspect.iscoroutinefunction(unittest.mock.create_autospec(demo))=}")print(f"{asyncio.iscoroutinefunction(unittest.mock.create_autospec(demo))=}")# this prints:# inspect.iscoroutinefunction(unittest.mock.create_autospec(demo))=False# asyncio.iscoroutinefunction(unittest.mock.create_autospec(demo))=Trueif__name__=="__main__":sys.exit(main())
see also#84753
Linked PRs
Metadata
Metadata
Assignees
Labels
Projects
Status
Done