[BE][Ez]: Update ruff to 0.7.4 (#140806)

Updates ruff to 0.7.4, mainly updates false pos/negatives for rules and fixes some bad autofixes.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/140806
Approved by: https://github.com/cyyever, https://github.com/malfet
This commit is contained in:
Aaron Gokaslan
2024-11-15 17:04:32 +00:00
committed by PyTorch MergeBot
parent de34f581f1
commit c05eff278a
2 changed files with 4 additions and 6 deletions

View File

@ -2479,10 +2479,8 @@ except RuntimeError as e:
@unittest.skipIf(not HAS_PSUTIL, "psutil not found")
@slowTest
def test_proper_exit(self):
(
r"""There might be ConnectionResetError or leaked semaphore warning """
r"""(due to dirty process exit), but they are all safe to ignore"""
)
"""There might be ConnectionResetError or leaked semaphore warning
(due to dirty process exit), but they are all safe to ignore"""
# TODO: test the case where the pin_memory_thread triggers an
# error/fatal signal. I haven't found out how to properly do that.