Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assert_called error on Python3 #15186

Merged
merged 1 commit into from
Dec 7, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tensorflow/python/estimator/training_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def test_single_worker_node_with_empty_tf_master(

self._run_task(training._TrainingExecutor(mock_est, mock_train_spec,
mock_eval_spec))
mock_est.train.assert_called()
self.assertTrue(mock_est.train.called)
mock_server.assert_not_called()

def test_fail_with_empty_task_type(self):
Expand Down Expand Up @@ -836,7 +836,7 @@ def test_single_master_node_with_empty_tf_master(
executor.run_master()

mock_server.assert_not_called()
mock_est.train.assert_called()
self.assertTrue(mock_est.train.called)

def test_fail_with_empty_task_type(self):
mock_est = test.mock.Mock(spec=estimator_lib.Estimator)
Expand Down