From 4140570d85cdca75c7effbf43c5b064cd15396a0 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Mon, 19 Aug 2024 15:56:03 +1000 Subject: [PATCH] Fix up unit test now that cryptography only allows valid strings --- tests/unit/plugins/plugin_utils/_ldap/test_certificate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/plugins/plugin_utils/_ldap/test_certificate.py b/tests/unit/plugins/plugin_utils/_ldap/test_certificate.py index 444b9a4..bb756ea 100644 --- a/tests/unit/plugins/plugin_utils/_ldap/test_certificate.py +++ b/tests/unit/plugins/plugin_utils/_ldap/test_certificate.py @@ -546,7 +546,7 @@ def test_client_auth_path_der_key( perform_handshake(context, tls_server, client_certificate[0]) -@pytest.mark.parametrize("password", [None, b"Password123!\xFF"]) +@pytest.mark.parametrize("password", [None, b"P\xc3\xa4ssword123!"]) def test_client_auth_path_pfx_file( password: t.Optional[bytes], tls_server: TlsServer,