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:
parent
da3874c96d
commit
6b57b2bb74
4 changed files with 2 additions and 21 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue