Skip to content

Commit 5d9bc5e

Browse files
authored
Assert Runtime Error for torch.compile on Python 3.11 (#7387)
1 parent 81f0c0c commit 5d9bc5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/smoke_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ def smoke_test_compile() -> None:
3939
except RuntimeError:
4040
if platform == "win32":
4141
print("Successfully caught torch.compile RuntimeError on win")
42+
elif sys.version_info >= (3, 11, 0):
43+
print("Successfully caught torch.compile RuntimeError on Python 3.11")
4244
else:
4345
raise
4446

0 commit comments

Comments
 (0)