Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
astralcai committed Jun 19, 2024
1 parent fd6c5ed commit a091caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ops/functions/test_equal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,7 @@ def test_tensors_not_equal(self):
"""Tensors are not equal because of different observable data"""
op1 = qml.operation.Tensor(qml.X(0), qml.Y(1))
op2 = qml.operation.Tensor(qml.Y(0), qml.X(1))
with pytest.raises(AssertionError, match="op1 and op2 have different _obs_data outputs"):
with pytest.raises(AssertionError, match="have different _obs_data outputs"):
assert_equal(op1, op2)

@pytest.mark.parametrize(("H", "T", "res"), equal_hamiltonians_and_tensors)
Expand Down

0 comments on commit a091caa

Please sign in to comment.