Update base for Update on "[dynamo, 3.14] enable dynamo in 3.14"

dynamo tests are passing in the CI PR above - so we could probably just enable dynamo right now.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela mlazos

[ghstack-poisoned]
This commit is contained in:
William Wen
2025-11-07 16:24:52 -08:00
parent 5d0796c259
commit 442ac2543e

View File

@ -4501,9 +4501,12 @@ class TestSerialization(TestCase, SerializationMixin):
# Test that without materialize_fake_tensor, behavior for fake_tensors is not altered by ctx
if not materialize_fake:
ft = converter.from_real_tensor(mode, torch.randn(2, device=t_device))
exn_type = (
AttributeError if sys.version_info < (3, 14) else pickle.PicklingError
)
with self.assertRaisesRegex(
AttributeError,
"Can't (get|pickle) local object 'WeakValueDictionary.__init__.<locals>.remove'"
exn_type,
r"Can't (get|pickle) local object .*WeakValueDictionary\.__init__\.<locals>\.remove",
):
with skip_data(), BytesIOContext() as f:
torch.save(ft, f)