[BE] fix remaining flake8 v7 warnings (#159044)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/159044
Approved by: https://github.com/Skylion007
ghstack dependencies: #159043
This commit is contained in:
Xuehai Pan
2025-07-25 01:07:16 +08:00
committed by PyTorch MergeBot
parent f903bc475c
commit f5e2de928b
24 changed files with 90 additions and 91 deletions

View File

@ -201,7 +201,7 @@ class _TestMultiProcessing:
try:
os.kill(pid, 0)
except ProcessLookupError:
pids.remove(pid)
pids.remove(pid) # noqa: B909
break
# This assert fails if any nested child process is still