Do not allow abbreviated arguments

This commit is contained in:
Zac Hatfield-Dodds
2019-06-25 13:51:33 +10:00
parent 4f57d40a43
commit d72fb73fa0
9 changed files with 55 additions and 11 deletions

View File

@@ -0,0 +1,7 @@
Pytest no longer accepts prefixes of command-line arguments, for example
typing ``pytest --doctest-mod`` inplace of ``--doctest-modules``.
This was previously allowed where the ``ArgumentParser`` thought it was unambiguous,
but this could be incorrect due to delayed parsing of options for plugins.
See for example issues `#1149 <https://github.com/pytest-dev/pytest/issues/1149>`__,
`#3413 <https://github.com/pytest-dev/pytest/issues/3413>`__, and
`#4009 <https://github.com/pytest-dev/pytest/issues/4009>`__.