def METHOD_NAME(self, stdouts):
    t = Timer()
    t.schedule.on_error = Mock()
    fun = Mock()
    fun.side_effect = ValueError()
    t.schedule.apply_entry(fun)
    fun.assert_called_with()
    assert not stdouts.stderr.getvalue()