1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-05-02 16:32:56 +00:00

[PR #10327/5a5b2d2e backport][stable-11] remove unnecessary checks for unsupported python versions (#10330)

remove unnecessary checks for unsupported python versions (#10327)

(cherry picked from commit 5a5b2d2eed)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot] 2025-07-02 06:58:13 +02:00 committed by GitHub
parent da3874c96d
commit 6b57b2bb74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 2 additions and 21 deletions

View file

@ -147,7 +147,7 @@ class TestUnloadModule(ModuleTestCase):
class TestModuleIsLoadedPersistently(ModuleTestCase):
def setUp(self):
if (sys.version_info[0] == 3 and sys.version_info[1] < 7) or (sys.version_info[0] == 2 and sys.version_info[1] < 7):
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(TestModuleIsLoadedPersistently, self).setUp()
@ -222,7 +222,7 @@ class TestModuleIsLoadedPersistently(ModuleTestCase):
class TestPermanentParams(ModuleTestCase):
def setUp(self):
if (sys.version_info[0] == 3 and sys.version_info[1] < 7) or (sys.version_info[0] == 2 and sys.version_info[1] < 7):
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(TestPermanentParams, self).setUp()