I think you copied this test from somewhere else. However here the parameter silence is always False, so there is no point in the ``if``. You can safely remove it, nosetests captures stdout anyway.