Skip to content

Commit

Permalink
update test strings
Browse files Browse the repository at this point in the history
  • Loading branch information
lillian542 committed Nov 19, 2024
1 parent 34b72ff commit 5e55132
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/test/pytest/test_adjoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def test_hamiltonian_base(self):

assert op.base is base
assert op.hyperparameters["base"] is base
assert op.name == "Adjoint(LinearCombination)"
assert op.name == "Adjoint(Sum)"

assert op.num_params == 2
assert qml.math.allclose(op.parameters, [2.0, 1.0])
Expand Down
2 changes: 1 addition & 1 deletion frontend/test/pytest/test_measurements_shots_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def circuit(theta, phi, varphi):
# TODO: only raises with the new API, Kokkos should also raise an error.
with pytest.raises(
TypeError,
match=r"VarianceMP(Sum) cannot be computed with samples",
match=r"VarianceMP\(Sum\) cannot be computed with samples.",
):
circuit(0.432, 0.123, -0.543)

Expand Down

0 comments on commit 5e55132

Please sign in to comment.