We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adb0621 commit bf42eb8Copy full SHA for bf42eb8
Lib/test/test_socket.py
@@ -2562,8 +2562,7 @@ def testHyperVConstants(self):
2562
socket.HV_GUID_LOOPBACK
2563
2564
def testCreateHyperVSocketWithUnknownProtoFailure(self):
2565
- expected = "A protocol was specified in the socket function call " \
2566
- "that does not support the semantics of the socket type requested"
+ expected = r"\[WinError 10041\]"
2567
with self.assertRaisesRegex(OSError, expected):
2568
socket.socket(socket.AF_HYPERV, socket.SOCK_STREAM)
2569
0 commit comments