diff options
Diffstat (limited to 'tensorflow/python/kernel_tests/pad_op_test.py')
-rw-r--r-- | tensorflow/python/kernel_tests/pad_op_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/kernel_tests/pad_op_test.py b/tensorflow/python/kernel_tests/pad_op_test.py index 944de217a1..e415d7879e 100644 --- a/tensorflow/python/kernel_tests/pad_op_test.py +++ b/tensorflow/python/kernel_tests/pad_op_test.py @@ -188,7 +188,7 @@ class PadOpTest(test.TestCase): mode="SYMMETRIC").eval() def testInvalid(self): - with self.test_session(): + with self.cached_session(): x = [[1, 2, 3], [4, 5, 6]] with self.assertRaisesRegexp(ValueError, "Unknown padding mode"): array_ops.pad(x, [[1, 0], [2, 1]], mode="weird").eval() |