(pyfuncitem: "Function")
| 184 | |
| 185 | @hookimpl(trylast=True) |
| 186 | def pytest_pyfunc_call(pyfuncitem: "Function") -> Optional[object]: |
| 187 | testfunction = pyfuncitem.obj |
| 188 | if is_async_function(testfunction): |
| 189 | async_warn_and_skip(pyfuncitem.nodeid) |
| 190 | funcargs = pyfuncitem.funcargs |
| 191 | testargs = {arg: funcargs[arg] for arg in pyfuncitem._fixtureinfo.argnames} |
| 192 | result = testfunction(**testargs) |
| 193 | if hasattr(result, "__await__") or hasattr(result, "__aiter__"): |
| 194 | async_warn_and_skip(pyfuncitem.nodeid) |
| 195 | return True |
| 196 | |
| 197 | |
| 198 | def pytest_collect_file(file_path: Path, parent: nodes.Collector) -> Optional["Module"]: |
nothing calls this directly
no test coverage detected