From 26695e0bb2e57012ccd7f222658474d2435aa1ec Mon Sep 17 00:00:00 2001 From: sneaxiy Date: Thu, 27 Dec 2018 13:36:18 +0800 Subject: [PATCH] add thread join test=develop --- .../fluid/tests/unittests/test_py_reader_using_executor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/paddle/fluid/tests/unittests/test_py_reader_using_executor.py b/python/paddle/fluid/tests/unittests/test_py_reader_using_executor.py index abc30874f..559386545 100644 --- a/python/paddle/fluid/tests/unittests/test_py_reader_using_executor.py +++ b/python/paddle/fluid/tests/unittests/test_py_reader_using_executor.py @@ -220,6 +220,8 @@ class TestPyReaderUsingExecutor(unittest.TestCase): feed_queue.close() self.validate() + if not use_decorate_paddle_reader: + thread.join() def validate(self): self.assertEqual(len(self.inputs), len(self.outputs)) -- GitLab