[Python-checkins] gh-92658: Fix typo in docs and tests for `HV_GUID_PARENT` (GH-105267)

zooba webhook-mailer at python.org
Tue Jun 6 12:11:28 EDT 2023


https://github.com/python/cpython/commit/3907de12b57b14f674cdcc80ae64350a23af53a0
commit: 3907de12b57b14f674cdcc80ae64350a23af53a0
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: zooba <steve.dower at microsoft.com>
date: 2023-06-06T17:11:19+01:00
summary:

gh-92658: Fix typo in docs and tests for `HV_GUID_PARENT` (GH-105267)

files:
M Doc/library/socket.rst
M Lib/test/test_socket.py

diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 5f795af42b812..f2408cb95ff31 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -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.
 
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 68cdc6eaa9137..0eaf64257c3b8 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -2566,7 +2566,7 @@ def testHyperVConstants(self):
         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\]"



More information about the Python-checkins mailing list