Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Calling inspect.signature with an AsyncMock instance raises an exception #96127

Closed
Labels
stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error
@yvan-the-barbarian

Description

@yvan-the-barbarian

Bug report

Starting in Python 3.10.6, the following code raises an exception:

frominspectimportsignaturefromunittest.mockimportAsyncMockmock=AsyncMock()signature(mock)
  • No exception is raised whenMock 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)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp