GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `unitest.mock.create_autospec(async_def)` does not create functions valid for `inspect.iscoroutinefunction` · Issue #94924 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Descriptiondiscovered while creating #94923 Bug report import unittest.mock import inspect import asyncio import sys def main(): async def demo(): pass print(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))=True if __name__ == "__main__": sys.exit(main()) see also #84753 Linked PRsActivity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |