Skip to content

Commit be5c1e9

Browse files
committed
Fix serialization test by renaming.
1 parent dc63f75 commit be5c1e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_sample.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,10 @@ def test_json_edges(self):
19291929
self.assertTrue(np.isnan(fit.stan_variable("nan_out")[0]))
19301930
self.assertTrue(np.isinf(fit.stan_variable("inf_out")[0]))
19311931

1932-
def test_serialization(self, stanfile='bernoulli.stan'):
1932+
def test_mcmc_serialization(self, stanfile='bernoulli.stan'):
1933+
# This test must have a name with lexicographical less than any test
1934+
# that uses the `without_import` context manager because the latter uses
1935+
# `reload` with side effects that affect the consistency of classes.
19331936
stan = os.path.join(DATAFILES_PATH, stanfile)
19341937
bern_model = CmdStanModel(stan_file=stan)
19351938

0 commit comments

Comments
 (0)