open deccorator test, test=develop (#25464)

fix_copy_if_different
Chen Weihang 5 years ago committed by GitHub
parent 7be285a66f
commit ccb98cde2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

@ -1,4 +1 @@
# 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__':

Loading…
Cancel
Save