Skip to content

Commit 03bc7ee

Browse files
committed
Copied identical models in test_compare
1 parent bc7df0c commit 03bc7ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymc3/tests/test_stats.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from numpy.random import random, normal
1414
from numpy.testing import assert_equal, assert_almost_equal, assert_array_almost_equal
1515
from scipy import stats as st
16+
import copy
1617

1718

1819
def test_log_post_trace():
@@ -67,8 +68,8 @@ def test_compare():
6768
x = pm.StudentT('x', nu=1, mu=mu, lam=1, observed=x_obs)
6869
trace2 = pm.sample(1000)
6970

70-
traces = [trace0] * 2
71-
models = [model0] * 2
71+
traces = [trace0, copy.copy(trace0)]
72+
models = [model0, copy.copy(model0)]
7273

7374
model_dict = dict(zip(models, traces))
7475

0 commit comments

Comments
 (0)