Skip to content

Commit 1ef7708

Browse files
committed
adapted one test for mac os
1 parent 0ef9ad6 commit 1ef7708

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/test_fast_graph.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# pylint: disable=missing-function-docstring, missing-class-docstring
22
import unittest
33
import networkx as nx
4-
from nestmodel.fast_graph import FastGraph
4+
55
from numpy.testing import assert_array_equal
66
import numpy as np
77
import os
88
import nestmodel
9+
import platform
10+
from nestmodel.fast_graph import FastGraph
911

1012
from nestmodel.utils_for_test import restore_numba, remove_numba
1113

@@ -503,7 +505,10 @@ def test_source_only_rewiring(self):
503505
)
504506
G.ensure_edges_prepared(sorting_strategy="source")
505507
G.rewire(0, method=1, seed=3, r=1, source_only=True, parallel=parallel)
506-
np.testing.assert_array_equal(G.edges, [[2, 1]])
508+
if platform.system() =="Darwin":
509+
np.testing.assert_array_equal(G.edges, [[0, 1]])
510+
else:
511+
np.testing.assert_array_equal(G.edges, [[2, 1]])
507512

508513
def test_prrewiring_only_rewiring(self):
509514
G = FastGraph(

0 commit comments

Comments
 (0)