From d3adb985d1fb97f68acc2e4b8ae54f2bfca05fda Mon Sep 17 00:00:00 2001 From: Sylvain Gugger <35901082+sgugger@users.noreply.github.com> Date: Mon, 5 Oct 2020 09:45:47 -0400 Subject: [PATCH] Expand test to locate flakiness (#7580) --- tests/test_trainer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_trainer.py b/tests/test_trainer.py index a758ced2410..81694b7fbeb 100755 --- a/tests/test_trainer.py +++ b/tests/test_trainer.py @@ -193,7 +193,9 @@ class TrainerIntegrationTest(unittest.TestCase): trainer = get_regression_trainer() trainer.train() 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): # Checks that training worked, model trained and seed made a reproducible training.