mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-102943: Stop checking localized error text in socket tests on Windows (GH-102944)
This commit is contained in:
parent
adb0621652
commit
bf42eb8722
1 changed files with 1 additions and 2 deletions
|
|
@ -2562,8 +2562,7 @@ def testHyperVConstants(self):
|
|||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue