Skip to content

Commit

Permalink
Test for warning
Browse files Browse the repository at this point in the history
  • Loading branch information
terrorfisch committed Aug 25, 2023
1 parent 6070991 commit dba662c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/hardware/alazar_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit dba662c

Please sign in to comment.