Skip to content

Commit f1be187

Browse files
committed
case that doesnt work now
1 parent 2d753b3 commit f1be187

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_data.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,12 @@ def test_allowed(self):
608608
for mb in pm.Minibatch(self.data, pt.as_tensor(self.data) * 2, batch_size=20):
609609
assert isinstance(mb.owner.op, MinibatchOp)
610610

611+
def test_not_allowed(self):
612+
data = pt.random.normal(loc=self.data, scale=1)
613+
614+
with pytest.raises(ValueError):
615+
pm.Minibatch(data, batch_size=20)
616+
611617
def test_assert(self):
612618
d1, d2 = pm.Minibatch(self.data, self.data[::2], batch_size=20)
613619
with pytest.raises(

0 commit comments

Comments
 (0)