Skip to content

Commit 9a6de87

Browse files
committed
[3.13] gh-145548: Don't use VMADDR_CID_LOCAL from socket
VMADDR_CID_LOCAL was added to `socekt` in 3.14. The test needs a local constant in setUp(), as in clientSetUp().
1 parent f10a1d8 commit 9a6de87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def setUp(self):
568568
self.addCleanup(self.serv.close)
569569
cid = get_cid()
570570
if cid in (socket.VMADDR_CID_HOST, socket.VMADDR_CID_ANY):
571-
cid = socket.VMADDR_CID_LOCAL
571+
cid = VMADDR_CID_LOCAL
572572
try:
573573
self.serv.bind((cid, VSOCKPORT))
574574
except OSError as exc:

0 commit comments

Comments
 (0)