summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2025-04-12 22:35:28 (GMT)
committerGitHub <noreply@github.com>2025-04-12 22:35:28 (GMT)
commit718d234e4086a65d78c87457ffda3c63f7c4fad0 (patch)
treebd699b2d0ec6431807cb95d576e97179623d45eb
parentf2f86d3f459a89273ea22389bb57eed402908302 (diff)
downloadcpython-718d234e4086a65d78c87457ffda3c63f7c4fad0.zip
cpython-718d234e4086a65d78c87457ffda3c63f7c4fad0.tar.gz
cpython-718d234e4086a65d78c87457ffda3c63f7c4fad0.tar.bz2
gh-132429: Remove not working test for Bluetooth socket (GH-132459)
-rw-r--r--Lib/test/test_socket.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index fcadcb3..66cb63d 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -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: