Skip to content

Commit 9193ce2

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Assert Runtime Error for torch.compile on Python 3.11 (#7387)
Reviewed By: vmoens Differential Revision: D44416544 fbshipit-source-id: 6d0335f61c104327c2b2b796a86ba559a5003594
1 parent 89275af commit 9193ce2

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)