(self)
| 719 | ) |
| 720 | |
| 721 | def _factorytraceback(self) -> List[str]: |
| 722 | lines = [] |
| 723 | for fixturedef in self._get_fixturestack(): |
| 724 | factory = fixturedef.func |
| 725 | fs, lineno = getfslineno(factory) |
| 726 | if isinstance(fs, Path): |
| 727 | session: Session = self._pyfuncitem.session |
| 728 | p = bestrelpath(session.path, fs) |
| 729 | else: |
| 730 | p = fs |
| 731 | args = _format_args(factory) |
| 732 | lines.append("%s:%d: def %s%s" % (p, lineno + 1, factory.__name__, args)) |
| 733 | return lines |
| 734 | |
| 735 | def _getscopeitem( |
| 736 | self, scope: Union[Scope, "_ScopeName"] |
no test coverage detected