Remove deprecated Parser.addoption backward compatibilities
This commit is contained in:
@@ -54,9 +54,6 @@ class TestParser:
|
||||
assert argument.type is str
|
||||
argument = parseopt.Argument("-t", dest="abc", type=float)
|
||||
assert argument.type is float
|
||||
with pytest.warns(DeprecationWarning):
|
||||
with pytest.raises(KeyError):
|
||||
argument = parseopt.Argument("-t", dest="abc", type="choice")
|
||||
argument = parseopt.Argument(
|
||||
"-t", dest="abc", type=str, choices=["red", "blue"]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user