mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adding a skip for the literal_eval test on py3
This commit is contained in:
parent
0ea3a9d08d
commit
18240d350c
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ class TestModuleUtilsBasic(unittest.TestCase):
|
||||||
mod = builtins.__import__('ansible.module_utils.basic')
|
mod = builtins.__import__('ansible.module_utils.basic')
|
||||||
|
|
||||||
@patch.object(builtins, '__import__')
|
@patch.object(builtins, '__import__')
|
||||||
|
@unittest.skipIf(sys.version_info[0] >= 3, "Python 3 is not supported on targets (yet)")
|
||||||
def test_module_utils_basic_import_literal_eval(self, mock_import):
|
def test_module_utils_basic_import_literal_eval(self, mock_import):
|
||||||
def _mock_import(name, *args, **kwargs):
|
def _mock_import(name, *args, **kwargs):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue