Revert "Add infra to run CPython tests under Dynamo (#150787)"

This reverts commit 7c96dd8f0c9a7e17f598612405f002441c7f07ae.

Reverted https://github.com/pytorch/pytorch/pull/150787 on behalf of https://github.com/huydhn due to Sorry for reverting your change but a failed test is showing up in trunk ([comment](https://github.com/pytorch/pytorch/pull/150787#issuecomment-2852818113))
This commit is contained in:
PyTorch MergeBot
2025-05-06 00:20:02 +00:00
parent 0e9874849f
commit 103fe856e1
13 changed files with 1608 additions and 175 deletions

View File

@ -1593,13 +1593,6 @@ def get_selected_tests(options) -> list[str]:
]
)
if sys.version_info[:2] < (3, 13):
# Skip tests for older Python versions as they may use syntax or features
# not supported in those versions
options.exclude.extend(
[test for test in selected_tests if test.startswith("dynamo/cpython/3_13/")]
)
selected_tests = exclude_tests(options.exclude, selected_tests)
if sys.platform == "win32" and not options.ignore_win_blocklist: