From e0875f2aefa7a228fc1065291975dd8e820055ea Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Sun, 1 Mar 2020 13:55:58 -0800 Subject: [PATCH] Skip ios_acls unit test on Python 3.5. --- test/units/modules/network/ios/test_ios_acls.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/units/modules/network/ios/test_ios_acls.py b/test/units/modules/network/ios/test_ios_acls.py index e1d7fad642d..3dc7ee6aa24 100644 --- a/test/units/modules/network/ios/test_ios_acls.py +++ b/test/units/modules/network/ios/test_ios_acls.py @@ -6,6 +6,15 @@ from __future__ import (absolute_import, division, print_function) __metaclass__ = type +import sys + +import pytest + +# These tests and/or the module under test are unstable on Python 3.5. +# See: https://app.shippable.com/github/ansible/ansible/runs/161331/15/tests +# This is most likely due to CPython 3.5 not maintaining dict insertion order. +pytestmark = pytest.mark.skipif(sys.version_info[:2] == (3, 5), reason="Tests and/or module are unstable on Python 3.5.") + from units.compat.mock import patch from ansible.modules.network.ios import ios_acls from units.modules.utils import set_module_args