Skip to content

Commit

Permalink
Skip TestHub on macOS (pytorch#26033)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#26033

[test macos]

Test Plan: Imported from OSS

Differential Revision: D17323698

Pulled By: pietern

fbshipit-source-id: 1b5805d2b0f693d05a807299df4941a6bb528801
  • Loading branch information
pietern authored and facebook-github-bot committed Sep 11, 2019
1 parent 32b7b89 commit d1d3361
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import torch.hub as hub
from torch.autograd._functions.utils import prepare_onnx_paddings
from torch.autograd._functions.utils import check_onnx_broadcast
from common_utils import skipIfRocm, load_tests
from common_utils import skipIfRocm, load_tests, IS_MACOS

# load_tests from common_utils is used to automatically filter tests for
# sharding on sandcastle. This line silences flake warnings
Expand Down Expand Up @@ -519,6 +519,7 @@ def sum_of_model_parameters(model):

SUM_OF_PRETRAINED_RESNET18_PARAMS = -12703.992365

@unittest.skipIf(IS_MACOS, 'Broken on macOS; see #26032')
class TestHub(TestCase):
@classmethod
def setUpClass(cls):
Expand Down

0 comments on commit d1d3361

Please sign in to comment.