Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
mudit2812 committed Jan 9, 2025
1 parent 2dd94bd commit 8d88191
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/data/attributes/operator/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class TestDatasetOperator:
[
qml.RX(1.1, 0),
qml.FermionicSWAP(1.3, [1, "a"]),
qml.Toffoli([1, "a", None]),
qml.Toffoli([1, "a", 2]),
qml.Hamiltonian([], []),
],
)
Expand All @@ -180,7 +180,7 @@ def test_value_init(self, attribute_cls, op_in):
[
qml.RX(1.1, 0),
qml.FermionicSWAP(1.3, [1, "a"]),
qml.Toffoli([1, "a", None]),
qml.Toffoli([1, "a", 2]),
qml.Hamiltonian([], []),
],
)
Expand Down Expand Up @@ -237,8 +237,6 @@ def test_value_init_not_supported():
class NotSupported(Operator): # pylint: disable=too-few-public-methods, unnecessary-ellipsis
"""An operator."""

...

with pytest.raises(
TypeError, match="Serialization of operator type 'NotSupported' is not supported"
):
Expand Down

0 comments on commit 8d88191

Please sign in to comment.