Skip to content

Commit 9f1b62f

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

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
@@ -499,7 +499,7 @@ def setUp(self):
499499
self.addCleanup(self.serv.close)
500500
cid = get_cid()
501501
if cid in (socket.VMADDR_CID_HOST, socket.VMADDR_CID_ANY):
502-
cid = socket.VMADDR_CID_LOCAL
502+
cid = VMADDR_CID_LOCAL
503503
try:
504504
self.serv.bind((cid, VSOCKPORT))
505505
except OSError as exc:

0 commit comments

Comments
 (0)