pytorch/tools/testing
Anthony Barbier cf9cad31df Add __main__ guards to tests (#154716)
This PR is part of a series attempting to re-submit https://github.com/pytorch/pytorch/pull/134592 as smaller PRs.

Add missing `if __name__ == "__main__":` guards to some tests.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/154716
Approved by: https://github.com/Skylion007
2025-06-04 14:38:13 +00:00
..
target_determination [TD] test_cpp_extensions_aot_ninja corresponds to things in test/cpp_extensions (#148992) 2025-03-12 15:40:06 +00:00
__init__.py
clickhouse.py [BE][CI] bump ruff to 0.9.8 (#145606) 2025-02-27 21:01:10 +00:00
discover_tests.py Add __main__ guards to tests (#154716) 2025-06-04 14:38:13 +00:00
do_target_determination_for_s3.py Revert "Use absolute path path.resolve() -> path.absolute() (#129409)" 2025-01-04 14:17:20 +00:00
explicit_ci_jobs.py Revert "Use absolute path path.resolve() -> path.absolute() (#129409)" 2025-01-04 14:17:20 +00:00
modulefinder_determinator.py Revert "Use absolute path path.resolve() -> path.absolute() (#129409)" 2025-01-04 14:17:20 +00:00
test_run.py [BE][CI] bump ruff to 0.9.2: multiline assert statements (#144546) 2025-02-27 20:46:16 +00:00
test_selections.py [BE][CI] bump ruff to 0.9.2: multiline assert statements (#144546) 2025-02-27 20:46:16 +00:00
update_slow_tests.py Revert "Use absolute path path.resolve() -> path.absolute() (#129409)" 2025-01-04 14:17:20 +00:00
upload_artifacts.py Fix broken URLs (#152237) 2025-04-27 09:56:42 +00:00