mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Setup for running PyTorch tests with TorchDynamo and skips for known failing tests (#80106)
@ezyang I am going to keep adding more skips in this PR for now. And once we have the CI running, I will replace with the appropriate decorators. cc @mlazos , we should add those tests in test_ops.py in this PR as well cc @jansel Pull Request resolved: https://github.com/pytorch/pytorch/pull/80106 Approved by: https://github.com/ezyang, https://github.com/jansel
This commit is contained in:
committed by
PyTorch MergeBot
parent
bd6bea35f8
commit
1d90d6ee60
@ -10,7 +10,7 @@ from unittest import skipIf
|
||||
|
||||
from torch.package import is_from_package, PackageExporter, PackageImporter
|
||||
from torch.package.package_exporter import PackagingError
|
||||
from torch.testing._internal.common_utils import IS_FBCODE, IS_SANDCASTLE, run_tests
|
||||
from torch.testing._internal.common_utils import IS_FBCODE, IS_SANDCASTLE, run_tests, skipIfTorchDynamo
|
||||
|
||||
try:
|
||||
from .common import PackageTestCase
|
||||
@ -263,6 +263,7 @@ class TestMisc(PackageTestCase):
|
||||
self.assertTrue(imported_mod.is_from_package())
|
||||
self.assertFalse(mod.is_from_package())
|
||||
|
||||
@skipIfTorchDynamo("Not a suitable test for TorchDynamo")
|
||||
def test_std_lib_sys_hackery_checks(self):
|
||||
"""
|
||||
The standard library performs sys.module assignment hackery which
|
||||
|
Reference in New Issue
Block a user