Open
Description
🐛 Describe the bug
This information is from "docs.pytest.org"
In pytest 8.2.0: #12089: pytest now requires that unittest.TestCase subclasses can be instantiated freely using MyTestCase('runTest').
-
With this pytest-8.2.1 version, when I execute: pytest -v test_c10d_nccl.py::NCCLTraceTest
-
With pytest-8.1.1 version, when I execute: pytest -v test_c10d_nccl.py::NCCLTraceTest
The related source code, torch/testing/_internal/common_distributed.py:
def __init__(self, method_name: str = "runTest") -> None:
super().__init__(method_name)
fn = getattr(self, method_name)
setattr(self, method_name, self.join_or_run(fn))
Versions
Any pytorch version
cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu @fegin @XilunWu @wanchaol @fduwjj @wz337 @tianyu-l @wconstab @yf225 @chauhang @d4l3k