(self, nodeid: str)
| 1271 | sys.stderr.flush() |
| 1272 | |
| 1273 | def cwd_relative_nodeid(self, nodeid: str) -> str: |
| 1274 | # nodeid's are relative to the rootpath, compute relative to cwd. |
| 1275 | if self.invocation_params.dir != self.rootpath: |
| 1276 | base_path_part, *nodeid_part = nodeid.split("::") |
| 1277 | # Only process path part |
| 1278 | fullpath = self.rootpath / base_path_part |
| 1279 | relative_path = bestrelpath(self.invocation_params.dir, fullpath) |
| 1280 | |
| 1281 | nodeid = "::".join([relative_path, *nodeid_part]) |
| 1282 | return nodeid |
| 1283 | |
| 1284 | @classmethod |
| 1285 | def fromdictargs(cls, option_dict: Mapping[str, Any], args: list[str]) -> Config: |
no test coverage detected