Skip to content

Commit

Permalink
Apply workaround for multiple short options for Python <= 3.8
Browse files Browse the repository at this point in the history
Hopefully by Python 3.9 this will be fixed upstream, if not we will
need to bump the version again.

Fix pytest-dev#5523
  • Loading branch information
nicoddemus committed Jun 29, 2019
1 parent d4a76a0 commit 52ba0b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/5523.bugfix.rst
@@ -0,0 +1 @@
Fixed using multiple short options together in the command-line in Python 3.8+.
2 changes: 1 addition & 1 deletion src/_pytest/config/argparsing.py
Expand Up @@ -358,7 +358,7 @@ def parse_args(self, args=None, namespace=None):
getattr(args, FILE_OR_DIR).extend(argv)
return args

if sys.version_info[:2] < (3, 8): # pragma: no cover
if sys.version_info[:2] < (3, 9): # pragma: no cover
# Backport of https://github.com/python/cpython/pull/14316 so we can
# disable long --argument abbreviations without breaking short flags.
def _parse_optional(self, arg_string):
Expand Down

0 comments on commit 52ba0b5

Please sign in to comment.