[OpenReg] Remove the unit.skip for test_serialization (#156804)

This bugs was fixed by this [PR](https://github.com/pytorch/pytorch/pull/147095)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/156804
Approved by: https://github.com/albanD
ghstack dependencies: #156588, #156589
This commit is contained in:
FFFrog 2025-06-25 17:47:23 +08:00 committed by PyTorch MergeBot
parent 98e594b565
commit 0a16818d5b

View File

@ -339,10 +339,6 @@ class TestOpenReg(TestCase):
self.assertNotEqual(pinned_a.data_ptr(), rewrapped_a.data_ptr())
# Serialization
@unittest.skip(
"Temporarily disable due to the tiny differences between clang++ and g++ in defining static variable in inline function,"
"this pr can fix this, https://github.com/pytorch/pytorch/pull/147095"
)
def test_serialization(self):
storage = torch.UntypedStorage(4, device=torch.device("openreg"))
self.assertEqual(torch.serialization.location_tag(storage), "openreg:0")