From 676c6ea316f4dda962d8b2e29855c040020533f5 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Sat, 1 Dec 2018 21:04:41 +0000 Subject: [PATCH] Pylint fix Signed-off-by: Yong Tang --- tensorflow/python/kernel_tests/sparse_ops_test.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tensorflow/python/kernel_tests/sparse_ops_test.py b/tensorflow/python/kernel_tests/sparse_ops_test.py index f58832a89e3..50b62391858 100644 --- a/tensorflow/python/kernel_tests/sparse_ops_test.py +++ b/tensorflow/python/kernel_tests/sparse_ops_test.py @@ -804,10 +804,12 @@ class SparseMathOpsTest(test_util.TensorFlowTestCase): # Test case for GitHub 24072. with self.session(use_gpu=False): a = array_ops.ones([3, 4, 1], dtype=dtypes.int32) - b = sparse_tensor.SparseTensor([[0, 0, 1, 0], [0, 0, 3, 0]], [10, 20], [1, 1, 4, 2]) + b = sparse_tensor.SparseTensor( + [[0, 0, 1, 0], [0, 0, 3, 0]], [10, 20], [1, 1, 4, 2]) c = a * b - with self.assertRaisesRegexp(errors.InvalidArgumentError, - "broadcasts dense to sparse only; got incompatible shapes"): + with self.assertRaisesRegexp( + errors.InvalidArgumentError, + "broadcasts dense to sparse only; got incompatible shapes"): c.eval() @test_util.run_deprecated_v1