https://github.com/python/cpython/commit/26326a0b4fef5452a72275a548d1bd13f0e10ccd
commit: 26326a0b4fef5452a72275a548d1bd13f0e10ccd
branch: 3.13
author: Petr Viktorin <[email protected]>
committer: encukou <[email protected]>
date: 2026-03-10T16:01:52+01:00
summary:
[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().
files:
M Lib/test/test_socket.py
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index b135a843e90adc..8a5e85824392bc 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -568,7 +568,7 @@ def setUp(self):
self.addCleanup(self.serv.close)
cid = get_cid()
if cid in (socket.VMADDR_CID_HOST, socket.VMADDR_CID_ANY):
- cid = socket.VMADDR_CID_LOCAL
+ cid = VMADDR_CID_LOCAL
try:
self.serv.bind((cid, VSOCKPORT))
except OSError as exc:
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]