def test_no_help_by_default(self, capsys):
    parser = parseopt.Parser(usage='xyz')
    pytest.raises(SystemExit, (lambda : parser.parse(['-h'])))
    (out, err) = capsys.readouterr()
    assert (err.find('error: unrecognized arguments') != (- 1))
def test_no_help_by_default(self, capsys):
    parser = parseopt.Parser(usage='xyz')
    pytest.raises(SystemExit, (lambda : parser.parse(['-h'])))
    (out, err) = capsys.readouterr()
    assert (err.find('error: unrecognized arguments') != (- 1))