Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
Closed
Description
Bug report
Starting in Python 3.10.6, the following code raises an exception:
frominspectimportsignaturefromunittest.mockimportAsyncMockmock=AsyncMock()signature(mock)
- No exception is raised when
Mock
is used. - The exception does not occur with Python 3.10.5.
Your environment
- CPython versions tested on: 3.10.4, 3.10.5, 3.10.6 (Only occurs in 3.10.6)
- Operating system and architecture: Windows 10, Linux (Official Docker Image)