From 59a2d880bc86357fdb604264207eb91e54ee453d Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Tue, 11 Sep 2018 10:34:19 -0700 Subject: [PATCH] Fix ACI unit test on Python 3.7.0. The previous logic was only needed for pre-release versions of 3.7. (cherry picked from commit c0bf9815c98c9ec00fc9648ae7a0f561684fc10e) --- test/units/module_utils/network/aci/test_aci.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/units/module_utils/network/aci/test_aci.py b/test/units/module_utils/network/aci/test_aci.py index 1e8c14f4a49..f930d75dc06 100644 --- a/test/units/module_utils/network/aci/test_aci.py +++ b/test/units/module_utils/network/aci/test_aci.py @@ -261,8 +261,6 @@ class AciRest(unittest.TestCase): error_text = to_native(u"Unable to parse output as XML, see 'raw' output. None (line 0)", errors='surrogate_or_strict') elif PY2: error_text = "Unable to parse output as XML, see 'raw' output. Document is empty, line 1, column 1 (line 1)" - elif sys.version_info >= (3, 7): - error_text = to_native(u"Unable to parse output as XML, see 'raw' output. None (line 0)", errors='surrogate_or_strict') else: error_text = "Unable to parse output as XML, see 'raw' output. Document is empty, line 1, column 1 (, line 1)"