From ee50df8556e56e9f4db8ff4df6514f337d5e74ee Mon Sep 17 00:00:00 2001 From: Pavel Koneski Date: Mon, 2 Feb 2026 13:43:09 -0800 Subject: [PATCH] Update SSL issuer test sample --- tests/suite/modules/network_related/test__ssl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/suite/modules/network_related/test__ssl.py b/tests/suite/modules/network_related/test__ssl.py index 27a9e2a45..cb6ac959c 100644 --- a/tests/suite/modules/network_related/test__ssl.py +++ b/tests/suite/modules/network_related/test__ssl.py @@ -15,7 +15,7 @@ from iptest import IronPythonTestCase, is_cli, is_netcoreapp, retryOnFailure, run_test, skipUnlessIronPython SSL_URL = "www.python.org" -SSL_ISSUER = "CN=GlobalSign Atlas R3 DV TLS CA 2025 Q1, O=GlobalSign nv-sa, C=BE" +SSL_ISSUER = r"CN=GlobalSign Atlas R3 DV TLS CA 20\d\d Q?\d, O=GlobalSign nv-sa, C=BE" SSL_SERVER = "www.python.org" SSL_PORT = 443 SSL_REQUEST = b"GET /en-us HTTP/1.0\r\nHost: www.python.org\r\n\r\n" @@ -158,7 +158,7 @@ def test_SSLType_issuer(self): issuer = ssl_s.issuer() #If we can get the issuer once, we should be able to do it again self.assertEqual(issuer, ssl_s.issuer()) - self.assertIn(SSL_ISSUER, issuer) + self.assertRegex(issuer, SSL_ISSUER) #--Negative self.assertRaisesMessage(TypeError, "issuer() takes no arguments (1 given)",