Skip to content

Commit

Permalink
Do not include seeded_test fixture in exported BaseTestDistributionRa…
Browse files Browse the repository at this point in the history
…ndom
  • Loading branch information
ricardoV94 committed Aug 8, 2023
1 parent ccad4c8 commit d59a960
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pymc/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ class BaseTestDistributionRandom:
repeated_params_shape = 5
random_state = None

def test_distribution(self, seeded_test):
def test_distribution(self):
self.validate_tests_list()
if self.pymc_dist == pm.Wishart:
with pytest.warns(UserWarning, match="can currently not be used for MCMC sampling"):
Expand Down
2 changes: 1 addition & 1 deletion tests/distributions/test_continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ class TestStudentT(BaseTestDistributionRandom):

class TestHalfStudentT(BaseTestDistributionRandom):
def halfstudentt_rng_fn(self, df, loc, scale, size, rng):
return np.abs(st.t.rvs(df=df, loc=loc, scale=scale, size=size))
return np.abs(st.t.rvs(df=df, loc=loc, scale=scale, size=size, random_state=rng))

pymc_dist = pm.HalfStudentT
pymc_dist_params = {"nu": 5.0, "sigma": 2.0}
Expand Down
2 changes: 1 addition & 1 deletion tests/distributions/test_multivariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@ class TestKroneckerNormal(BaseTestDistributionRandom):
def kronecker_rng_fn(self, size, mu, covs=None, sigma=None, rng=None):
cov = pm.math.kronecker(covs[0], covs[1]).eval()
cov += sigma**2 * np.identity(cov.shape[0])
return st.multivariate_normal.rvs(mean=mu, cov=cov, size=size)
return st.multivariate_normal.rvs(mean=mu, cov=cov, size=size, random_state=rng)

pymc_dist = pm.KroneckerNormal

Expand Down

0 comments on commit d59a960

Please sign in to comment.