diff options
author | Martin Krizek <martin.krizek@gmail.com> | 2024-06-17 09:03:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-17 09:03:41 +0200 |
commit | b2a289dcbb702003377221e25f62c8a3608f0e89 (patch) | |
tree | 1bc0ee53d08bfc1209576532c810a5c3f3a9418c /test/units | |
parent | vault: Handle directory value to vault password file (#83384) (diff) | |
download | ansible-b2a289dcbb702003377221e25f62c8a3608f0e89.tar.xz ansible-b2a289dcbb702003377221e25f62c8a3608f0e89.zip |
Remove Python 3.10 support for the controller (#83221)
Fixes #83094
Diffstat (limited to 'test/units')
-rw-r--r-- | test/units/cli/galaxy/test_collection_extract_tar.py | 10 | ||||
-rw-r--r-- | test/units/requirements.txt | 8 |
2 files changed, 4 insertions, 14 deletions
diff --git a/test/units/cli/galaxy/test_collection_extract_tar.py b/test/units/cli/galaxy/test_collection_extract_tar.py index 521a5e7608..3c443afa67 100644 --- a/test/units/cli/galaxy/test_collection_extract_tar.py +++ b/test/units/cli/galaxy/test_collection_extract_tar.py @@ -6,28 +6,18 @@ from __future__ import annotations import pytest -from ansible.errors import AnsibleError from ansible.galaxy.collection import _extract_tar_dir @pytest.fixture def fake_tar_obj(mocker): m_tarfile = mocker.Mock() - m_tarfile._ansible_normalized_cache = {'/some/dir': mocker.Mock()} m_tarfile.type = mocker.Mock(return_value=b'99') m_tarfile.SYMTYPE = mocker.Mock(return_value=b'22') return m_tarfile -def test_extract_tar_member_trailing_sep(mocker): - m_tarfile = mocker.Mock() - m_tarfile._ansible_normalized_cache = {} - - with pytest.raises(AnsibleError, match='Unable to extract'): - _extract_tar_dir(m_tarfile, '/some/dir/', b'/some/dest') - - def test_extract_tar_dir_exists(mocker, fake_tar_obj): mocker.patch('os.makedirs', return_value=None) m_makedir = mocker.patch('os.mkdir', return_value=None) diff --git a/test/units/requirements.txt b/test/units/requirements.txt index c77c55cdd0..fb7291545d 100644 --- a/test/units/requirements.txt +++ b/test/units/requirements.txt @@ -1,4 +1,4 @@ -bcrypt ; python_version >= '3.10' # controller only -passlib ; python_version >= '3.10' # controller only -pexpect ; python_version >= '3.10' # controller only -pywinrm ; python_version >= '3.10' # controller only +bcrypt ; python_version >= '3.11' # controller only +passlib ; python_version >= '3.11' # controller only +pexpect ; python_version >= '3.11' # controller only +pywinrm ; python_version >= '3.11' # controller only |