aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/image_ops_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/ops/image_ops_test.py')
-rw-r--r--tensorflow/python/ops/image_ops_test.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tensorflow/python/ops/image_ops_test.py b/tensorflow/python/ops/image_ops_test.py
index 3a49d41c9e..80911ffe07 100644
--- a/tensorflow/python/ops/image_ops_test.py
+++ b/tensorflow/python/ops/image_ops_test.py
@@ -2833,6 +2833,16 @@ class PngTest(test_util.TensorFlowTestCase):
class GifTest(test_util.TensorFlowTestCase):
+ def testOptimizedGifErrorString(self):
+ filename = "tensorflow/core/lib/gif/testdata/optimized.gif"
+
+ with self.test_session(use_gpu=True) as sess:
+ gif = io_ops.read_file(filename)
+ image = image_ops.decode_gif(gif)
+ with self.assertRaisesRegexp(
+ errors.InvalidArgumentError, "can't process optimized gif"):
+ gif, image = sess.run([gif, image])
+
def testValid(self):
# Read some real GIFs
prefix = "tensorflow/core/lib/gif/testdata/"