aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/autograph/converters/logical_expressions_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/autograph/converters/logical_expressions_test.py')
-rw-r--r--tensorflow/python/autograph/converters/logical_expressions_test.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tensorflow/python/autograph/converters/logical_expressions_test.py b/tensorflow/python/autograph/converters/logical_expressions_test.py
index 5fb3fb992f..b78b4d3a6a 100644
--- a/tensorflow/python/autograph/converters/logical_expressions_test.py
+++ b/tensorflow/python/autograph/converters/logical_expressions_test.py
@@ -47,14 +47,12 @@ class GradientsFunctionTest(converter_testing.TestCase):
with self.cached_session() as sess:
self.assertTrue(sess.run(result.test_fn(True, False, True)))
- def test_ag_utils_lookup(self):
+ def test_unsupported_ops(self):
def test_fn(a, b):
- return a is b or a is not b
+ return a in b
- with self.converted(test_fn, logical_expressions, {}, math_ops.logical_or
- ) as result:
- with self.cached_session() as sess:
- self.assertTrue(sess.run(result.test_fn(True, False)))
+ with self.converted(test_fn, logical_expressions, {}) as result:
+ self.assertTrue(result.test_fn('a', ('a',)))
if __name__ == '__main__':