Skip to content

Commit 4bc32e3

Browse files
aseyboldttwiecki
authored andcommitted
Ignore theano test_values in some tests
1 parent 4df211e commit 4bc32e3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pymc3/tests/test_dist_math.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def test_logp(self):
139139
logp = logp_f(cov_val, delta_val)
140140
npt.assert_allclose(logp, expect)
141141

142+
@theano.configparser.change_flags(compute_test_value="ignore")
142143
def test_grad(self):
143144
np.random.seed(42)
144145

@@ -179,12 +180,14 @@ def test_hessian(self):
179180

180181

181182
class TestSplineWrapper(object):
183+
@theano.configparser.change_flags(compute_test_value="ignore")
182184
def test_grad(self):
183185
x = np.linspace(0, 1, 100)
184186
y = x * x
185187
spline = SplineWrapper(interpolate.InterpolatedUnivariateSpline(x, y, k=1))
186188
utt.verify_grad(spline, [0.5])
187189

190+
@theano.configparser.change_flags(compute_test_value="ignore")
188191
def test_hessian(self):
189192
x = np.linspace(0, 1, 100)
190193
y = x * x

pymc3/tests/test_math.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def setup_method(self):
2020
self.op_class = LogDet
2121
self.op = logdet
2222

23+
@theano.configparser.change_flags(compute_test_value="ignore")
2324
def validate(self, input_mat):
2425
x = theano.tensor.matrix()
2526
f = theano.function([x], self.op(x))

0 commit comments

Comments
 (0)