Skip to content

Commit d3adb98

Browse files
authored
Expand test to locate flakiness (huggingface#7580)
1 parent b2b7fc7 commit d3adb98

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_trainer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ def test_training_arguments_are_left_untouched(self):
193193
trainer = get_regression_trainer()
194194
trainer.train()
195195
args = TrainingArguments("./regression")
196-
self.assertEqual(args.to_dict(), trainer.args.to_dict())
196+
dict1, dict2 = args.to_dict(), trainer.args.to_dict()
197+
for key in dict1.keys():
198+
self.assertEqual(dict1[key], dict2[key])
197199

198200
def test_reproducible_training(self):
199201
# Checks that training worked, model trained and seed made a reproducible training.

0 commit comments

Comments
 (0)