mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Skip a test for Bluetooth HCI socket (added in GH-132023) if it fails (GH-132072)
This commit is contained in:
parent
bfc292abc1
commit
ef70f02925
1 changed files with 6 additions and 1 deletions
|
@ -2725,7 +2725,12 @@ class BasicBluetoothTest(unittest.TestCase):
|
|||
self.assertEqual(addr, socket.BDADDR_ANY)
|
||||
else:
|
||||
dev = 0
|
||||
s.bind((dev,))
|
||||
try:
|
||||
s.bind((dev,))
|
||||
except OSError as err:
|
||||
if err.errno in (errno.EINVAL, errno.ENODEV):
|
||||
self.skipTest(str(err))
|
||||
raise
|
||||
addr = s.getsockname()
|
||||
self.assertEqual(addr, dev)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue