未验证 提交 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): ...@@ -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: try:
import ujson as json import ujson as json
except Exception as e: except Exception as e:
......
# TODO: Fix this unittest failed on Windows py_test(decorator_test SRCS decorator_test.py)
if(NOT WIN32)
py_test(decorator_test SRCS decorator_test.py)
endif()
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import sys
import time import time
import unittest import unittest
import functools import functools
...@@ -171,6 +172,7 @@ class TestMultiProcessReader(unittest.TestCase): ...@@ -171,6 +172,7 @@ class TestMultiProcessReader(unittest.TestCase):
self.assertEqual(sorted(self.samples), sorted(results)) self.assertEqual(sorted(self.samples), sorted(results))
def test_distributed_batch_reader(self): def test_distributed_batch_reader(self):
if sys.platform != 'win32':
self.reader_test(use_pipe=False) self.reader_test(use_pipe=False)
self.reader_test(use_pipe=True) self.reader_test(use_pipe=True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册