mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
remove unnecessary checks for unsupported python versions (#10327)
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user