[ez] Fix small type error in run_test (#109036)

This is really small but it has tripped me up at least 3 times.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/109036
Approved by: https://github.com/kit1980
This commit is contained in:
Catherine Lee 2023-09-11 21:11:20 +00:00 committed by PyTorch MergeBot
parent 5c8efa6077
commit a4138b1f99

View File

@ -1289,7 +1289,7 @@ def can_run_in_pytest(test):
return os.getenv("PYTORCH_TEST_DO_NOT_USE_PYTEST", "0") == "0" return os.getenv("PYTORCH_TEST_DO_NOT_USE_PYTEST", "0") == "0"
def get_selected_tests(options) -> List[ShardedTest]: def get_selected_tests(options) -> List[str]:
selected_tests = options.include selected_tests = options.include
# filter if there's JIT only and distributed only test options # filter if there's JIT only and distributed only test options