diff --git a/pytests/test_pytensoroperator.py b/pytests/test_pytensoroperator.py index caec04df5..02a3431a4 100644 --- a/pytests/test_pytensoroperator.py +++ b/pytests/test_pytensoroperator.py @@ -1,4 +1,5 @@ import os +import platform import numpy as np import pytest @@ -12,6 +13,10 @@ if pytensor_message is None: import pytensor + # avoid compile error on mac + if platform.system() == "Darwin": + pytensor.config.gcc__cxxflags = "-Wno-c++11-narrowing" + par1 = {"ny": 11, "nx": 11, "dtype": np.float32} # square par2 = {"ny": 21, "nx": 11, "dtype": np.float32} # overdetermined