Skip to content

Commit 889a464

Browse files
BowenBaopytorchmergebot
authored andcommitted
[ONNX] Skip import test for experimental files (pytorch#94552)
`torch.onnx._internal.fx` is experimental and is not imported when `import torch`/`import torch.onnx`. Need to skip it in this test as it depends on `onnx-script`. Pull Request resolved: pytorch#94552 Approved by: https://github.com/kit1980
1 parent c620ece commit 889a464

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_testing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,6 +1987,7 @@ def test_circular_dependencies(self) -> None:
19871987
"torch.contrib.", # something weird
19881988
"torch.testing._internal.distributed.", # just fails
19891989
"torch.ao.pruning._experimental.", # depends on pytorch_lightning, not user-facing
1990+
"torch.onnx._internal.fx", # depends on onnx-script
19901991
]
19911992
# See https://github.com/pytorch/pytorch/issues/77801
19921993
if not sys.version_info >= (3, 9):

0 commit comments

Comments
 (0)