Skip to content

Commit 52ba0b5

Browse files
committed
Apply workaround for multiple short options for Python <= 3.8
Hopefully by Python 3.9 this will be fixed upstream, if not we will need to bump the version again. Fix #5523
1 parent d4a76a0 commit 52ba0b5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/5523.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed using multiple short options together in the command-line in Python 3.8+.

src/_pytest/config/argparsing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def parse_args(self, args=None, namespace=None):
358358
getattr(args, FILE_OR_DIR).extend(argv)
359359
return args
360360

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

0 commit comments

Comments
 (0)