Unverified Commit d3adb985 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Expand test to locate flakiness (#7580)

parent b2b7fc78
...@@ -193,7 +193,9 @@ class TrainerIntegrationTest(unittest.TestCase): ...@@ -193,7 +193,9 @@ class TrainerIntegrationTest(unittest.TestCase):
trainer = get_regression_trainer() trainer = get_regression_trainer()
trainer.train() trainer.train()
args = TrainingArguments("./regression") args = TrainingArguments("./regression")
self.assertEqual(args.to_dict(), trainer.args.to_dict()) dict1, dict2 = args.to_dict(), trainer.args.to_dict()
for key in dict1.keys():
self.assertEqual(dict1[key], dict2[key])
def test_reproducible_training(self): def test_reproducible_training(self):
# Checks that training worked, model trained and seed made a reproducible training. # Checks that training worked, model trained and seed made a reproducible training.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment