Apply ruff fixes to tests (#146140)

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/146140
Approved by: https://github.com/albanD
This commit is contained in:
cyy
2025-02-04 05:40:59 +00:00
committed by PyTorch MergeBot
parent 71e3575525
commit 1c16cf70c3
6 changed files with 14 additions and 16 deletions

View File

@ -135,8 +135,7 @@ class _NodeReporterReruns(_NodeReporter):
else:
assert isinstance(report.longrepr, tuple)
filename, lineno, skipreason = report.longrepr
if skipreason.startswith("Skipped: "):
skipreason = skipreason[9:]
skipreason = skipreason.removeprefix("Skipped: ")
details = f"{filename}:{lineno}: {skipreason}"
skipped = ET.Element(