diff options
author | Jon Perl <perl.jonathan@gmail.com> | 2018-07-16 18:17:10 -0400 |
---|---|---|
committer | Jon Perl <perl.jonathan@gmail.com> | 2018-07-16 18:17:10 -0400 |
commit | 653b290777cff0d46a669bef0e67c995c762d99d (patch) | |
tree | ec6a42c21326ce3e04aa6f912dd2cbfeafbdb928 /tensorflow/contrib/estimator | |
parent | fe666a2bd2d99dfbdfe696e9d0424eb1aa236ece (diff) |
Make InMemoryEvaluatorHook test agnostic to different platforms keys() order
Diffstat (limited to 'tensorflow/contrib/estimator')
-rw-r--r-- | tensorflow/contrib/estimator/python/estimator/hooks_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/estimator/python/estimator/hooks_test.py b/tensorflow/contrib/estimator/python/estimator/hooks_test.py index e094dade6a..ee88d5ecf5 100644 --- a/tensorflow/contrib/estimator/python/estimator/hooks_test.py +++ b/tensorflow/contrib/estimator/python/estimator/hooks_test.py @@ -111,7 +111,7 @@ class InMemoryEvaluatorHookTest(test.TestCase): self.assertEqual(4.5, step_keyword_to_value[8]['mean_of_features']) # end self.assertEqual(4.5, step_keyword_to_value[10]['mean_of_features']) - self.assertEqual([0, 4, 8, 10], list(step_keyword_to_value.keys())) + self.assertEqual(set([0, 4, 8, 10]), set(step_keyword_to_value.keys())) def test_uses_latest_variable_value(self): |