From 4a1f962ca2b1430f8adcf54eff786bb9cfc1710c Mon Sep 17 00:00:00 2001
From: Xiao Yu <fishx@google.com>
Date: Thu, 15 Oct 2020 10:49:45 -0700
Subject: [PATCH] - Handle error metadata properly in c_api_tfrt. - Update
 is_async_ based on the EagerExecutor. - In async mode, don't report error
 synchronously

PiperOrigin-RevId: 337341093
Change-Id: I60c2423b7677006f1a98a5e4eb9727e91cc42ebd
---
 tensorflow/python/eager/ops_test.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tensorflow/python/eager/ops_test.py b/tensorflow/python/eager/ops_test.py
index 0c8bbe76c98..494abdbf269 100644
--- a/tensorflow/python/eager/ops_test.py
+++ b/tensorflow/python/eager/ops_test.py
@@ -394,7 +394,6 @@ class OpsTest(test_util.TensorFlowTestCase, parameterized.TestCase):
   @parameterized.named_parameters(
       ('Tensor', lambda: constant_op.constant(1.3+1j)),
       ('Variable', lambda: resource_variable_ops.ResourceVariable(1.3+1j)))
-  @test_util.disable_tfrt('cannot create complex tensor in TFRT.')
   def testCastToPrimitiveTypesFrom(self, value_fn):
     x = value_fn()
     self.assertIsInstance(int(x), int)
@@ -482,8 +481,8 @@ class OpsTest(test_util.TensorFlowTestCase, parameterized.TestCase):
     self.assertIs(weak_x(), None)
     self.assertIs(weak_y(), None)
 
-  @test_util.disable_tfrt('TFE_ContextGetExecutorForThread not implemented '
-                          'b/156188669')
+  @test_util.disable_tfrt(
+      'b/153697193: tfrt cannot decode python stacktrace yet')
   def testAsyncExceptionStackTrace(self):
     config.set_synchronous_execution(False)