Skip to content

Commit

Permalink
test: only check simplified meshes on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
william-silversmith committed Sep 20, 2022
1 parent 0026119 commit 4e06761
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions automated_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pytest
import numpy as np
import gzip
import sys

import zmesh

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4e06761

Please sign in to comment.