]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132429: Remove not working test for Bluetooth socket (GH-132459)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 12 Apr 2025 22:35:28 +0000 (01:35 +0300)
committerGitHub <noreply@github.com>
Sat, 12 Apr 2025 22:35:28 +0000 (22:35 +0000)
Lib/test/test_socket.py

index fcadcb3fb884aa081741cee6bdb19ec9826ff5e4..66cb63daca02aeeed8773d369a2d5bf048b1db33 100644 (file)
@@ -2663,19 +2663,13 @@ class BasicBluetoothTest(unittest.TestCase):
 
     @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: