From 5a2ecdea40498adbe2c8c944148893df59e9b7b5 Mon Sep 17 00:00:00 2001 From: zhaoyuchen2018 <45989343+zhaoyuchen2018@users.noreply.github.com> Date: Fri, 27 Sep 2019 10:16:42 +0800 Subject: [PATCH] Fix name_scope test case bug (#20034) test=develop Signed-off-by: zhaoyuchen --- python/paddle/fluid/tests/unittests/test_name_scope.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/paddle/fluid/tests/unittests/test_name_scope.py b/python/paddle/fluid/tests/unittests/test_name_scope.py index 08c802e20d..a1f0d56d0f 100644 --- a/python/paddle/fluid/tests/unittests/test_name_scope.py +++ b/python/paddle/fluid/tests/unittests/test_name_scope.py @@ -43,3 +43,7 @@ class TestNameScope(unittest.TestCase): self.assertEqual(op.desc.attr("op_namescope"), '/s4/') elif op.type == 'pow': self.assertEqual(op.desc.attr("op_namescope"), '/s1_1/') + + +if __name__ == "__main__": + unittest.main() -- GitLab