Lines Matching refs:name
23 name: str,
27 self.name = name
32 return f"{self.name} finished"
37 return f"{self.name} passed"
43 name: str,
49 super().__init__(name, duration_sec=duration_sec, xml_data=xml_data)
59 return f"{self.name} failed ({le} {error_s}, {lf} {failure_s})"
64 return f"{self.name} failed ({le} {error_s})"
69 return f"{self.name} failed ({lf} {failure_s})"
71 return f"{self.name} failed"
76 return f"{self.name} failed (uncaught exception)"
81 return f"{self.name} failed (env changed)"
86 return f"{self.name} failed (reference leak)"
91 return f"{self.name} skipped"
96 return f"{self.name} skipped (resource denied)"
101 return f"{self.name} interrupted"
106 return f"{self.name} crashed"
111 return f"{self.name} ran no tests"
116 return f"{self.name} timed out ({format_duration(self.duration_sec)})"
162 for name in names:
163 mod, ext = os.path.splitext(name)
252 test_name -- the name of the test
399 # since if a test leaves a file open, it cannot be deleted by name (while
401 # name of the offending test, which is a real help).
402 for name in (os_helper.TESTFN,):
403 if not os.path.exists(name):
406 if os.path.isdir(name):
409 elif os.path.isfile(name):
412 raise RuntimeError(f"os.path says {name!r} exists but is neither "
416 print_warning(f"{test_name} left behind {kind} {name!r}")
422 os.chmod(name, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
423 nuker(name)
425 print_warning(f"{test_name} left behind {kind} {name!r} "