Skip to content

Commit 718d234

Browse files
gh-132429: Remove not working test for Bluetooth socket (GH-132459)
1 parent f2f86d3 commit 718d234

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Diff for: Lib/test/test_socket.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -2663,19 +2663,13 @@ def testBindLePsmL2capSocket(self):
26632663

26642664
@unittest.skipUnless(HAVE_SOCKET_BLUETOOTH_L2CAP, 'Bluetooth L2CAP sockets required for this test')
26652665
def testBindBrEdrL2capSocket(self):
2666-
# First user PSM in BR/EDR L2CAP
2667-
psm = 0x1001
26682666
with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as f:
2667+
# First user PSM in BR/EDR L2CAP
2668+
psm = 0x1001
26692669
f.bind((socket.BDADDR_ANY, psm))
26702670
addr = f.getsockname()
26712671
self.assertEqual(addr, (socket.BDADDR_ANY, psm))
26722672

2673-
cid = 1
2674-
with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as f:
2675-
f.bind((socket.BDADDR_ANY, psm, cid))
2676-
addr = f.getsockname()
2677-
self.assertEqual(addr, (socket.BDADDR_ANY, psm, cid))
2678-
26792673
@unittest.skipUnless(HAVE_SOCKET_BLUETOOTH_L2CAP, 'Bluetooth L2CAP sockets required for this test')
26802674
def testBadL2capAddr(self):
26812675
with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as f:

0 commit comments

Comments
 (0)