def test_timeout_set_interval(qtbot):
 t = usertypes.Timer()
 with qtbot.waitSignal(t.timeout, timeout=3000):
  t.setInterval(200)
  t.start()

def test_timeout_set_interval ( qtbot ) : t = usertypes . Timer ( ) with qtbot . waitSignal ( t . timeout , timeout = 3000 ) : t . setInterval ( 200 ) t . start ( )
make sure the timer works with setinterval() .