Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Skip test_recordimage_dataset_with_data_loader_multiworker on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu authored Apr 4, 2020
1 parent b6edefb commit dcd3899
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/python/unittest/test_gluon_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# under the License.

import os
import sys
import tarfile
import unittest
import mxnet as mx
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit dcd3899

Please sign in to comment.