Skip to content

Commit 18c5668

Browse files
author
Tim Joseph
committed
test(tensor_distribution): update uniform validation error message pattern
1 parent d878ecd commit 18c5668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tensor_distribution/test_uniform.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ def test_uniform_compile(low, high, batch_shape):
9090

9191
def test_uniform_validate_args():
9292
with raises(
93-
ValueError, match="Uniform is not defined when low>= high"
94-
): # Updated regex
93+
ValueError, match=r"Expected parameter low.*to satisfy the constraint LessThan"
94+
):
9595
TensorUniform(torch.tensor([1.0]), torch.tensor([0.0]), validate_args=True)

0 commit comments

Comments
 (0)