With pytest8.2.0 or later, test cases under test/distributed/ execute will meet issue "object has no attribute 'runTest'. Did you mean: 'run_test'" #127517
Labels
oncall: distributed
Add this issue/PR to distributed oncall triage queue
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
🐛 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:
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
The text was updated successfully, but these errors were encountered: