You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by la...@apache.org on 2020/04/04 02:06:57 UTC

[incubator-mxnet] 01/01: Skip test_recordimage_dataset_with_data_loader_multiworker on OSX

This is an automated email from the ASF dual-hosted git repository.

lausen pushed a commit to branch leezu-patch-2
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git

commit dcd3899ab16f8704387721b016730b473e35459a
Author: Leonard Lausen <la...@amazon.com>
AuthorDate: Fri Apr 3 19:06:16 2020 -0700

    Skip test_recordimage_dataset_with_data_loader_multiworker on OSX
---
 tests/python/unittest/test_gluon_data.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/tests/python/unittest/test_gluon_data.py b/tests/python/unittest/test_gluon_data.py
index f78ce55..9a43d05 100644
--- a/tests/python/unittest/test_gluon_data.py
+++ b/tests/python/unittest/test_gluon_data.py
@@ -16,6 +16,7 @@
 # under the License.
 
 import os
+import sys
 import tarfile
 import unittest
 import mxnet as mx
@@ -83,7 +84,11 @@ def _dataset_transform_first_fn(x):
     return x
 
 @with_seed()
-def test_recordimage_dataset_with_data_loader_multiworker():
+def test_recordimage_dataset_with_data_loader_multiworker(): 
+    if sys.platform == 'darwin':
+        print('Skip for MacOS due to https://github.com/apache/incubator-mxnet/issues/17774')
+        return
+    
     recfile = prepare_record()
     dataset = gluon.data.vision.ImageRecordDataset(recfile)
     loader = gluon.data.DataLoader(dataset, 1, num_workers=5)
@@ -270,8 +275,7 @@ def test_multi_worker_dataloader_release_pool():
         print('Skip for windows since spawn on windows is too expensive.')
         return
 
-    from sys import platform
-    if platform == 'darwin':
+    if sys.platform == 'darwin':
         print('Skip for MacOS due to https://github.com/apache/incubator-mxnet/issues/17782')
         return