diff --git a/python/paddle/fluid/tests/unittests/test_name_scope.py b/python/paddle/fluid/tests/unittests/test_name_scope.py index 08c802e20d2bb364ef7f116ee0042a2ad21a9b2b..a1f0d56d0ff29be915e0d0d66e61451848e8bb34 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()