windows things
# -*- coding: utf-8 -*-
# ref: https://github.com/pymc-devs/pymc3/blob/master/pymc3/tests/conftest.py
+import platform
+
import pytest
import theano
@pytest.fixture(scope="package", autouse=True)
def theano_config():
- config = theano.configparser.change_flags(compute_test_value="off")
+ flags = dict(compute_test_value="off")
+ if platform.system() == "Windows":
+ print("windows")
+ flags["mode"] = "FAST_COMPILE"
+ config = theano.configparser.change_flags(**flags)
with config:
yield
