removed two superfluous parser arguments

--HG--
branch : opt-drop-non-hyphened-long-options
This commit is contained in:
Anthon van der Neut 2013-08-01 16:27:06 +02:00
parent 007a77c2ba
commit e24b56af6c
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ class TestParser:
out, err = capsys.readouterr()
assert err.find("error: unrecognized arguments") != -1
def test_argument(self, parser):
def test_argument(self):
with pytest.raises(parseopt.ArgumentError):
# need a short or long option
argument = parseopt.Argument()
@ -29,7 +29,7 @@ class TestParser:
argument = parseopt.Argument('-t', '--test', dest='abc')
assert argument.dest == 'abc'
def test_argument_type(self, parser):
def test_argument_type(self):
argument = parseopt.Argument('-t', dest='abc', type='int')
assert argument.type is int
argument = parseopt.Argument('-t', dest='abc', type='string')