From 4e067617aaf820fb96037c0e99d7163e1165f2c7 Mon Sep 17 00:00:00 2001 From: William Silversmith Date: Tue, 20 Sep 2022 11:29:41 -0400 Subject: [PATCH] test: only check simplified meshes on macos --- automated_test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/automated_test.py b/automated_test.py index 68c40d2..d259968 100644 --- a/automated_test.py +++ b/automated_test.py @@ -1,6 +1,7 @@ import pytest import numpy as np import gzip +import sys import zmesh @@ -143,6 +144,7 @@ def test_unsimplified_meshes_remain_the_same(connectomics_labels, order): # the simplifier produces a different mesh. Will have to add F order examples # in order to test. @pytest.mark.parametrize("order", [ 'C' ]) +@pytest.mark.skipif(sys.platform != 'darwin', reason="Different implementations of unordered_map on different platforms have different iteration behavior. Only MacOS will match.") def test_simplified_meshes_remain_the_same(connectomics_labels, order): if order == "C": connectomics_labels = np.ascontiguousarray(connectomics_labels)