]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-92658: Fix typo in docs and tests for `HV_GUID_PARENT` (GH-105267)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 6 Jun 2023 19:27:10 +0000 (12:27 -0700)
committerGitHub <noreply@github.com>
Tue, 6 Jun 2023 19:27:10 +0000 (20:27 +0100)
(cherry picked from commit 3907de12b57b14f674cdcc80ae64350a23af53a0)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Doc/library/socket.rst
Lib/test/test_socket.py

index 5f795af42b812e1504383440d2a0f1726b762732..f2408cb95ff314209bdf2aa3f5f7276c8f4ab6fe 100644 (file)
@@ -666,7 +666,7 @@ Constants
           HV_GUID_BROADCAST
           HV_GUID_CHILDREN
           HV_GUID_LOOPBACK
-          HV_GUID_LOOPBACK
+          HV_GUID_PARENT
 
    Constants for Windows Hyper-V sockets for host/guest communications.
 
index 68cdc6eaa9137597358e7924e90fe0be269bd4d4..0eaf64257c3b818e26802c068aca4b118cb5d74f 100644 (file)
@@ -2566,7 +2566,7 @@ class BasicHyperVTest(unittest.TestCase):
         socket.HV_GUID_BROADCAST
         socket.HV_GUID_CHILDREN
         socket.HV_GUID_LOOPBACK
-        socket.HV_GUID_LOOPBACK
+        socket.HV_GUID_PARENT
 
     def testCreateHyperVSocketWithUnknownProtoFailure(self):
         expected = r"\[WinError 10041\]"