diff options
author | Bruno Oliveira <bruno@esss.com.br> | 2019-06-29 11:13:24 -0300 |
---|---|---|
committer | Bruno Oliveira <bruno@esss.com.br> | 2019-06-29 11:15:28 -0300 |
commit | 9021194efd9fb253901c11a2a1fb83e7e8585dbf (patch) | |
tree | dcb61588cf401be7d50bdaa0d71283e8ffb642ba /src | |
parent | d4a76a0b99bb1f77913452325b3ace759ba63ab1 (diff) | |
download | pytest-9021194efd9fb253901c11a2a1fb83e7e8585dbf.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/_pytest/config/argparsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_pytest/config/argparsing.py b/src/_pytest/config/argparsing.py index d62ed0d03..43cf62ab1 100644 --- a/src/_pytest/config/argparsing.py +++ b/src/_pytest/config/argparsing.py @@ -358,7 +358,7 @@ class MyOptionParser(argparse.ArgumentParser): 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): |