aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/op_def_library_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/ops/op_def_library_test.py')
-rw-r--r--tensorflow/python/ops/op_def_library_test.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tensorflow/python/ops/op_def_library_test.py b/tensorflow/python/ops/op_def_library_test.py
index 22d14e2789..8b712a61db 100644
--- a/tensorflow/python/ops/op_def_library_test.py
+++ b/tensorflow/python/ops/op_def_library_test.py
@@ -221,12 +221,6 @@ class OpDefLibraryTest(test_util.TensorFlowTestCase):
self._lib.apply_op("Simple", wrong=7)
self.assertEqual(str(cm.exception), "No argument for input a")
- with self.assertRaises(TypeError) as cm:
- self._lib.apply_op("Simple", a=[self.Tensor(dtypes.int32)])
- self.assertStartsWith(str(cm.exception),
- "Expected int32, got list containing Tensors of type "
- "'_Message' instead.")
-
def testReservedInput(self):
self._add_op("name: 'ReservedInput' "
"input_arg { name: 'input' type: DT_INT32 } ")
@@ -267,11 +261,6 @@ class OpDefLibraryTest(test_util.TensorFlowTestCase):
self.assertEqual(str(cm.exception),
"Should not specify value for inferred attr 'T'.")
- with self.assertRaises(TypeError) as cm:
- self._lib.apply_op("Polymorphic", a=[self.Tensor(dtypes.bool)])
- self.assertEqual(str(cm.exception),
- "List of Tensors when single Tensor expected")
-
def testPolymorphicOut(self):
self._add_op("name: 'PolymorphicOut' "
"output_arg { name: 'out' type_attr: 'T' } "