Skip to content

Commit 61b18e3

Browse files
Update tests/test_device.py
Co-authored-by: Andrija Paurevic <46359773+andrijapau@users.noreply.github.com>
1 parent 9fb3ba1 commit 61b18e3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_device.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,8 @@ class TestAQTDeviceIntegration:
421421
def test_load_from_device_function(self, num_wires, shots):
422422
"""Tests that the AQTDevice can be loaded from PennyLane `device` function."""
423423

424-
with pytest.warns(
425-
qml.exceptions.PennyLaneDeprecationWarning, match="shots on device is deprecated"
426-
):
427-
dev = qml.device("aqt.sim", wires=num_wires, shots=shots, api_key=SOME_API_KEY)
424+
dev = qml.device("aqt.sim", wires=num_wires, api_key=SOME_API_KEY)
425+
428426

429427
assert dev.num_wires == num_wires
430428
assert dev.shots.total_shots == shots

0 commit comments

Comments
 (0)