mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 08:03:05 +02:00
ansible-test - Add minimum constraints for pytest.
Use `--strict` for `pytest` on Python 2.6 since `--strict-markers` is not available.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
minor_changes:
|
||||
- ansible-test - Set minimum version constraints for ``pytest``.
|
||||
bugfixes:
|
||||
- ansible-test - Use ``--strict`` for ``pytest`` on Python 2.6 since ``--strict-markers`` is not available.
|
||||
@@ -8,8 +8,9 @@ pywinrm >= 0.3.0 # message encryption support
|
||||
wheel < 0.30.0 ; python_version < '2.7' # wheel 0.30.0 and later require python 2.7 or later
|
||||
idna < 2.6, >= 2.5 # linode requires idna < 2.9, >= 2.5, requests requires idna < 2.6, but cryptography will cause the latest version to be installed instead
|
||||
paramiko < 2.4.0 ; python_version < '2.7' # paramiko 2.4.0 drops support for python 2.6
|
||||
pytest < 3.3.0 ; python_version < '2.7' # pytest 3.3.0 drops support for python 2.6
|
||||
pytest < 5.0.0 ; python_version == '2.7' # pytest 5.0.0 and later will no longer support python 2.7
|
||||
pytest < 3.3.0, >= 3.1.0 ; python_version < '2.7' # pytest 3.3.0 drops support for python 2.6
|
||||
pytest < 5.0.0, >= 4.5.0 ; python_version == '2.7' # pytest 5.0.0 and later will no longer support python 2.7
|
||||
pytest >= 4.5.0 ; python_version > '2.7' # pytest 4.5.0 added support for --strict-markers
|
||||
pytest-forked < 1.0.2 ; python_version < '2.7' # pytest-forked 1.0.2 and later require python 2.7 or later
|
||||
pytest-forked >= 1.0.2 ; python_version >= '2.7' # pytest-forked before 1.0.2 does not work with pytest 4.2.0+ (which requires python 2.7+)
|
||||
ntlm-auth >= 1.3.0 # message encryption support using cryptography
|
||||
|
||||
@@ -252,7 +252,10 @@ def command_units(args):
|
||||
if not data_context().content.collection:
|
||||
cmd.append('--durations=25')
|
||||
|
||||
if python.version != '2.6':
|
||||
if python.version == '2.6':
|
||||
# same as --strict-markers in older versions of pytest which still support python 2.6
|
||||
cmd.append('--strict')
|
||||
else:
|
||||
# added in pytest 4.5.0, which requires python 2.7+
|
||||
cmd.append('--strict-markers')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user