https://github.com/pytest-dev/pytest/blob/f0bf4c968195d2b17b002e866e2d0766184e02a4/src/_pytest/doctest.py#L477 Can someone reason why **func** is passed to `_stop` and not **obj**, this was changed in this commit https://github.com/pytest-dev/pytest/commit/32dd0e87cb2e6750c1fc2356eb451c9811bdb065. 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**