From bf42eb8722befddf099a7bc26ea4a258179c32bf Mon Sep 17 00:00:00 2001 From: AN Long Date: Fri, 24 Mar 2023 00:34:48 +0800 Subject: gh-102943: Stop checking localized error text in socket tests on Windows (GH-102944) --- Lib/test/test_socket.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 60f106f..32252f7 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -2562,8 +2562,7 @@ class BasicHyperVTest(unittest.TestCase): socket.HV_GUID_LOOPBACK def testCreateHyperVSocketWithUnknownProtoFailure(self): - expected = "A protocol was specified in the socket function call " \ - "that does not support the semantics of the socket type requested" + expected = r"\[WinError 10041\]" with self.assertRaisesRegex(OSError, expected): socket.socket(socket.AF_HYPERV, socket.SOCK_STREAM) -- cgit v0.12