mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Revert "Check if IMPORT_DISABLED_TESTS is set (#83436)"
This reverts commit 1187dedd33.
Reverted https://github.com/pytorch/pytorch/pull/83436 on behalf of https://github.com/huydhn due to The previous change breaks internal builds D38714900 and other OSS tests. The bug has been fixed by this PR. But we decide that it is safer to revert both, merge them into one PR, then reland the fix
This commit is contained in:
parent
dffa5d309a
commit
6266003d71
1 changed files with 1 additions and 2 deletions
|
|
@ -1580,11 +1580,10 @@ def check_if_enable(test: unittest.TestCase):
|
|||
|
||||
if "DISABLED_TESTS_DICT" in os.environ:
|
||||
disabled_tests_dict = json.loads(os.environ["DISABLED_TESTS_DICT"])
|
||||
elif IMPORT_DISABLED_TESTS and os.path.exists(IMPORT_DISABLED_TESTS):
|
||||
elif os.path.exists(IMPORT_DISABLED_TESTS):
|
||||
with open(IMPORT_DISABLED_TESTS, 'r') as fp:
|
||||
disabled_tests_dict = json.loads(fp.read())
|
||||
else:
|
||||
# IMPORT_DISABLED_TESTS can be None here
|
||||
print(f'Fail to load {IMPORT_DISABLED_TESTS}, no test will be skipped')
|
||||
|
||||
for disabled_test, (issue_url, platforms) in disabled_tests_dict.items():
|
||||
|
|
|
|||
Loading…
Reference in a new issue