未验证 提交 ccb98cde 编写于 作者: C Chen Weihang 提交者: GitHub

open deccorator test, test=develop (#25464)

上级 7be285a6
......@@ -536,6 +536,10 @@ def multiprocess_reader(readers, use_pipe=True, queue_size=1000):
"""
if sys.platform == 'win32':
raise NotImplementedError(
"The multiprocess_reader method is not supported on windows.")
try:
import ujson as json
except Exception as e:
......
# TODO: Fix this unittest failed on Windows
if(NOT WIN32)
py_test(decorator_test SRCS decorator_test.py)
endif()
py_test(decorator_test SRCS decorator_test.py)
......@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
import time
import unittest
import functools
......@@ -171,8 +172,9 @@ class TestMultiProcessReader(unittest.TestCase):
self.assertEqual(sorted(self.samples), sorted(results))
def test_distributed_batch_reader(self):
self.reader_test(use_pipe=False)
self.reader_test(use_pipe=True)
if sys.platform != 'win32':
self.reader_test(use_pipe=False)
self.reader_test(use_pipe=True)
if __name__ == '__main__':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册