We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f271d8 commit d314155Copy full SHA for d314155
tests/pulses/measurement_tests.py
@@ -47,10 +47,10 @@ def test_measurement_windows_invalid(self) -> None:
47
pulse = self.to_test_constructor(measurements=[('mw', 'a', 'd')])
48
measurement_mapping = {'mw': 'mw'}
49
50
- with self.assertRaises(ValueError):
+ with self.assertWarnsRegex(UserWarning, "negative begin or length"):
51
pulse.get_measurement_windows(measurement_mapping=measurement_mapping,
52
parameters=dict(length=10, a=-1, d=3))
53
54
55
parameters=dict(length=10, a=3, d=-1))
56
0 commit comments