]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-102943: Stop checking localized error text in socket tests on Windows (GH-102944)
authorAN Long <aisk@users.noreply.github.com>
Thu, 23 Mar 2023 16:34:48 +0000 (00:34 +0800)
committerGitHub <noreply@github.com>
Thu, 23 Mar 2023 16:34:48 +0000 (16:34 +0000)
Lib/test/test_socket.py

index 60f106f2d1a1c261be2013ac1f849040495bf38c..32252f7b741fda50df34737f3df476246d96ddda 100644 (file)
@@ -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)