From 1b0563e4e55eaf215f5c4a9c15a6685e6bc05e57 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 13 Apr 2025 01:07:25 +0300 Subject: [PATCH] gh-132429: Remove not working test for Bluetooth socket --- Lib/test/test_socket.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index fcadcb3fb884aa..66cb63daca02ae 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -2663,19 +2663,13 @@ def testBindLePsmL2capSocket(self): @unittest.skipUnless(HAVE_SOCKET_BLUETOOTH_L2CAP, 'Bluetooth L2CAP sockets required for this test') def testBindBrEdrL2capSocket(self): - # First user PSM in BR/EDR L2CAP - psm = 0x1001 with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as f: + # First user PSM in BR/EDR L2CAP + psm = 0x1001 f.bind((socket.BDADDR_ANY, psm)) addr = f.getsockname() self.assertEqual(addr, (socket.BDADDR_ANY, psm)) - cid = 1 - with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as f: - f.bind((socket.BDADDR_ANY, psm, cid)) - addr = f.getsockname() - self.assertEqual(addr, (socket.BDADDR_ANY, psm, cid)) - @unittest.skipUnless(HAVE_SOCKET_BLUETOOTH_L2CAP, 'Bluetooth L2CAP sockets required for this test') def testBadL2capAddr(self): with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as f: