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.
| 254 | |
| 255 | @attr.s |
| 256 | class _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 | |
| 267 | def get_real_func(obj): |
no outgoing calls