diff --git a/test/test_testing.py b/test/test_testing.py index 83b8cac6cfbb788..f7663f161c27be2 100644 --- a/test/test_testing.py +++ b/test/test_testing.py @@ -1799,6 +1799,7 @@ def test_circular_dependencies(self) -> None: ignored_modules.append("torch.distributed.") else: ignored_modules.append("torch.distributed.nn.api.") + ignored_modules.append("torch.distributed.optim.") ignored_modules.append("torch.testing._internal.dist_utils") # And these both end up with transitive dependencies on distributed ignored_modules.append("torch.nn.parallel._replicated_tensor_ddp_interop")