Skip to content

Commit 315616c

Browse files
committed
Fix tests
1 parent 8bdb74e commit 315616c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_distributions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ def test_distribution_must_be_initialized(self):
8282

8383
DIMS = 2
8484
dist = MaskableCategoricalDistribution(DIMS)
85-
with pytest.raises(AssertionError):
85+
with pytest.raises(AttributeError):
8686
dist.log_prob(th.randint(DIMS - 1, (1, 3)))
8787

88-
with pytest.raises(AssertionError):
88+
with pytest.raises(AttributeError):
8989
dist.entropy()
9090

91-
with pytest.raises(AssertionError):
91+
with pytest.raises(AttributeError):
9292
dist.sample()
9393

94-
with pytest.raises(AssertionError):
94+
with pytest.raises(AttributeError):
9595
dist.mode()
9696

97-
with pytest.raises(AssertionError):
97+
with pytest.raises(AttributeError):
9898
dist.apply_masking(None)
9999

100100
# But now we can

0 commit comments

Comments
 (0)