def test_runtime_error(objects, tabbed_browser):
 tabbed_browser.current_index = 0
 tabbed_browser.index_of = RuntimeError
 objects.signaller.signal.emit('foo')
 assert (objects.signaller.filtered_signal_arg is None)

def test_runtime_error ( objects , tabbed_browser ) : tabbed_browser . current_index = 0 tabbed_browser . index_of = RuntimeError objects . signaller . signal . emit ( 'foo' ) assert ( objects . signaller . filtered_signal_arg is None )
test that theres no crash if indexof() raises runtimeerror .