MCPcopy Create free account
hub / github.com/pytest-dev/pytest / _PytestWrapper

Class _PytestWrapper

src/_pytest/compat.py:256–264  ·  view source on GitHub ↗

Dummy wrapper around a function object for internal use only. Used to correctly unwrap the underlying function object when we are creating fixtures, because we wrap the function object ourselves with a decorator to issue warnings when the fixture function is called directly.

Source from the content-addressed store, hash-verified

254
255@attr.s
256class _PytestWrapper:
257 """Dummy wrapper around a function object for internal use only.
258
259 Used to correctly unwrap the underlying function object when we are
260 creating fixtures, because we wrap the function object ourselves with a
261 decorator to issue warnings when the fixture function is called directly.
262 """
263
264 obj = attr.ib()
265
266
267def get_real_func(obj):

Calls

no outgoing calls

Tested by 1

test_get_real_funcFunction · 0.72