Fix fallback of test_fetcher (#13071)

This commit is contained in:
Sylvain Gugger
2021-08-10 16:17:06 +02:00
committed by GitHub
parent 4dd857244c
commit 0dad5d825d

View File

@@ -454,4 +454,7 @@ if __name__ == "__main__":
except Exception as e: except Exception as e:
print(f"\nError when trying to grab the relevant tests: {e}\n\nRunning all tests.") print(f"\nError when trying to grab the relevant tests: {e}\n\nRunning all tests.")
with open(args.output_file, "w", encoding="utf-8") as f: with open(args.output_file, "w", encoding="utf-8") as f:
if args.filters is None:
f.write("./tests/") f.write("./tests/")
else:
f.write(" ".join(args.filters))