mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 21:17:20 +00:00
[PR #11048/ebf45260 backport][stable-12] remove conditional code for old snakes (#11050)
remove conditional code for old snakes (#11048)
* remove conditional code for old snakes
* remove conditional code for old snakes
* reformat
* add changelog frag
(cherry picked from commit ebf45260ce)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
16f1d07509
commit
caebf65948
17 changed files with 26 additions and 105 deletions
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from unittest.mock import patch, Mock, mock_open
|
||||
from ansible_collections.community.internal_test_tools.tests.unit.plugins.modules.utils import (
|
||||
ModuleTestCase,
|
||||
|
|
@ -152,9 +151,6 @@ class TestUnloadModule(ModuleTestCase):
|
|||
|
||||
class TestModuleIsLoadedPersistently(ModuleTestCase):
|
||||
def setUp(self):
|
||||
if sys.version_info[0] == 3 and sys.version_info[1] < 7:
|
||||
self.skipTest("open_mock doesn't support readline in earlier python versions")
|
||||
|
||||
super().setUp()
|
||||
|
||||
self.mock_get_bin_path = patch("ansible.module_utils.basic.AnsibleModule.get_bin_path")
|
||||
|
|
@ -216,8 +212,6 @@ class TestModuleIsLoadedPersistently(ModuleTestCase):
|
|||
|
||||
class TestPermanentParams(ModuleTestCase):
|
||||
def setUp(self):
|
||||
if sys.version_info[0] == 3 and sys.version_info[1] < 7:
|
||||
self.skipTest("open_mock doesn't support readline in earlier python versions")
|
||||
super().setUp()
|
||||
|
||||
self.mock_get_bin_path = patch("ansible.module_utils.basic.AnsibleModule.get_bin_path")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue