Skip to content

[Doctest] Doctest inspect unwrap passing func to _stop instead of obj #9778

Open
@akhilramkee

Description

@akhilramkee

return real_unwrap(func, stop=lambda obj: _is_mocked(obj) or _stop(func))

Can someone reason why func is passed to _stop and not obj, this was changed in this commit 32dd0e8.

This seems to be breaking cases where stop requires details of inner wrappers of the function, as only the intial function is used for stop evaluation

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: doctestsrelated to the doctests builtin plugintype: regressionindicates a problem that was introduced in a release which was working previously

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions