PyTest 8.2.0 incompatible with certain versions of pytorch, especially DDP tests #12273
Labels
plugin: unittest
related to the unittest integration builtin plugin
type: regression
indicates a problem that was introduced in a release which was working previously
_ ERROR collecting test/distributed/_composable/fsdp/test_fully_shard_comm.py __
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/usr/local/lib/python3.10/dist-packages/_pytest/runner.py", line 389, in collect
return list(collector.collect())
File "/usr/local/lib/python3.10/dist-packages/_pytest/unittest.py", line 90, in collect
self.session._fixturemanager.parsefactories(self.newinstance(), self.nodeid)
File "/usr/local/lib/python3.10/dist-packages/_pytest/unittest.py", line 75, in newinstance
return self.obj("runTest")
File "/usr/local/lib/python3.10/dist-packages/torch/testing/_internal/common_distributed.py", line 553, in init
fn = getattr(self, method_name)
AttributeError: 'FSDPTest' object has no attribute 'runTest'. Did you mean: 'run_test'?
We encountered this error with pytest 8.2.0.
Not sure if latest pytorch TOT fixed this issue.
The text was updated successfully, but these errors were encountered: