From dba662cb67716186c8554218de723203f57a3802 Mon Sep 17 00:00:00 2001 From: Simon Humpohl Date: Fri, 25 Aug 2023 15:20:41 +0200 Subject: [PATCH] Test for warning --- tests/hardware/alazar_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/hardware/alazar_tests.py b/tests/hardware/alazar_tests.py index c6e7d032..034f0525 100644 --- a/tests/hardware/alazar_tests.py +++ b/tests/hardware/alazar_tests.py @@ -6,7 +6,7 @@ from ..hardware import * from qupulse.hardware.dacs.alazar import AlazarCard, AlazarProgram from qupulse.utils.types import TimeType - +from qupulse.utils.performance import WindowOverlapWarning class AlazarProgramTest(unittest.TestCase): def setUp(self) -> None: @@ -112,7 +112,7 @@ def test_make_mask(self): with self.assertRaises(KeyError): card._make_mask('N', begins, lengths) - with self.assertRaises(ValueError): + with self.assertWarns(WindowOverlapWarning): card._make_mask('M', begins, lengths*3) mask = card._make_mask('M', begins, lengths)