Skip to content

Commit a23abb2

Browse files
remove deprecated assertDictContainsSubset
PiperOrigin-RevId: 716303100
1 parent e9248e8 commit a23abb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tf_keras/optimizers/optimizer_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def get_config(self):
411411
"module": None,
412412
"registered_name": "CustomLRSchedule",
413413
}
414-
self.assertDictContainsSubset(expected_config, config)
414+
self.assertEqual(config, {**config, **expected_config})
415415
self.assertDictEqual(expected_learning_rate, config["learning_rate"])
416416

417417
restored_optimizer = adam_new.Adam.from_config(

0 commit comments

Comments
 (0)