aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Dan Moldovan <mdan@google.com>2018-07-16 06:43:51 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-07-16 06:47:31 -0700
commit5c6d6eb67c76c33022908c447033c5e7f9b4f10e (patch)
treeb44736334066a198630fb69841e98744b548ca3a
parent00ac59bb3e6808da419488046e66d76043316b62 (diff)
Enable test that was accidentally misnamed.
PiperOrigin-RevId: 204734160
-rw-r--r--tensorflow/contrib/autograph/pyct/templates_test.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tensorflow/contrib/autograph/pyct/templates_test.py b/tensorflow/contrib/autograph/pyct/templates_test.py
index a01f8bf04c..a8bbc5a4de 100644
--- a/tensorflow/contrib/autograph/pyct/templates_test.py
+++ b/tensorflow/contrib/autograph/pyct/templates_test.py
@@ -151,17 +151,13 @@ class TemplatesTest(test.TestCase):
self.assertEqual(node.func.id, 'bar')
self.assertEqual(node.func.args[0].id, 'baz')
- def replace_as_expression_restrictions(self):
+ def test_replace_as_expression_restrictions(self):
template = """
foo(a)
bar(b)
"""
with self.assertRaises(ValueError):
templates.replace_as_expression(template)
- with self.assertRaises(ValueError):
- templates.replace('')
- with self.assertRaises(ValueError):
- templates.replace('a = b')
if __name__ == '__main__':