Skip to content

Commit bf42eb8

Browse files
authored
gh-102943: Stop checking localized error text in socket tests on Windows (GH-102944)
1 parent adb0621 commit bf42eb8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/test/test_socket.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2562,8 +2562,7 @@ def testHyperVConstants(self):
25622562
socket.HV_GUID_LOOPBACK
25632563

25642564
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"
2565+
expected = r"\[WinError 10041\]"
25672566
with self.assertRaisesRegex(OSError, expected):
25682567
socket.socket(socket.AF_HYPERV, socket.SOCK_STREAM)
25692568

0 commit comments

Comments
 (0)