Skip to content

Commit a859393

Browse files
authored
Merge pull request #668 from mrava87/test-pytensor
test: make pytensoroperator tests run on macOS
2 parents 63c639c + 2eaf978 commit a859393

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pytests/test_pytensoroperator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import platform
23

34
import numpy as np
45
import pytest
@@ -12,6 +13,10 @@
1213
if pytensor_message is None:
1314
import pytensor
1415

16+
# avoid compile error on mac
17+
if platform.system() == "Darwin":
18+
pytensor.config.gcc__cxxflags = "-Wno-c++11-narrowing"
19+
1520

1621
par1 = {"ny": 11, "nx": 11, "dtype": np.float32} # square
1722
par2 = {"ny": 21, "nx": 11, "dtype": np.float32} # overdetermined

0 commit comments

Comments
 (0)