From 619848fa3a1068f76e901f62e561929d9c1f8dc0 Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Tue, 7 Jul 2020 20:30:39 +0800 Subject: [PATCH] fix timeout test=develop (#25412) --- .../fluid/tests/unittests/dygraph_to_static/test_lac.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/dygraph_to_static/test_lac.py b/python/paddle/fluid/tests/unittests/dygraph_to_static/test_lac.py index c2ad5c2752..8141f9f462 100644 --- a/python/paddle/fluid/tests/unittests/dygraph_to_static/test_lac.py +++ b/python/paddle/fluid/tests/unittests/dygraph_to_static/test_lac.py @@ -513,13 +513,8 @@ class TestLACModel(unittest.TestCase): return out def test_train(self): - # TODO(Aurelius84): The unittest will hang sometimes under command "ctest" - # on Windows platform, which means it failed to start up this unittest. - # So the unittest raised timeout. - if os.name == 'nt': - return - dy_out = self.train(to_static=False) st_out = self.train(to_static=True) + dy_out = self.train(to_static=False) self.assertTrue( np.allclose(dy_out, st_out), msg="dygraph output:\n{},\nstatic output:\n {}.".format(dy_out, -- GitLab