From 5f6e0095b01fc7f1b646e9096d9c0bd8fadbe6b7 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Thu, 13 Jun 2024 21:33:36 +0200 Subject: [PATCH] Fix unit tests. (#767) --- .../plugins/module_utils/crypto/test_cryptography_support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/plugins/module_utils/crypto/test_cryptography_support.py b/tests/unit/plugins/module_utils/crypto/test_cryptography_support.py index 10f27d23..23564c3d 100644 --- a/tests/unit/plugins/module_utils/crypto/test_cryptography_support.py +++ b/tests/unit/plugins/module_utils/crypto/test_cryptography_support.py @@ -81,7 +81,7 @@ def test_adjust_idn_fail_valueerror(value, idn_rewrite, message): u'''^Error while transforming part u?"xn\\-\\-a" of IDNA DNS name u?"xn\\-\\-a" to Unicode\\.''' u''' IDNA2008 transformation resulted in "Codepoint U\\+0080 at position 1 of u?'\\\\x80' not allowed",''' u''' IDNA2003 transformation resulted in "(decoding with 'idna' codec failed''' - u''' \\(UnicodeError: )?Invalid character u?'\\\\x80'\\)?"\\.$''' + u''' \\(UnicodeError: |'idna' codec can't decode byte 0x78 in position 0: )?Invalid character u?'\\\\x80'\\)?"\\.$''' ), ]) def test_adjust_idn_fail_user_error(value, idn_rewrite, message):