Skip to content

Commit 46035a5

Browse files
committed
also test for ch2
1 parent 2253a6f commit 46035a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/hardware/util_tests.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ def test_size_exception(self):
9898
def test_range_exception(self):
9999
with self.assertRaisesRegex(ValueError, "invalid"):
100100
zhinst_voltage_to_uint16(2.*np.ones(192), None, (None, None, None, None))
101+
with self.assertRaisesRegex(ValueError, "invalid"):
102+
zhinst_voltage_to_uint16(None, 2.*np.ones(192), (None, None, None, None))
101103
# this should work
102104
zhinst_voltage_to_uint16(None, None, (2. * np.ones(192), None, None, None))
103105

0 commit comments

Comments
 (0)