mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
[3.13] Skip a test for Bluetooth HCI socket (added in GH-132023) if it fails (GH-132072) (GH-132125)
(cherry picked from commit ef70f02925
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
a5ed92025b
commit
6074017ec7
1 changed files with 6 additions and 1 deletions
|
@ -2699,7 +2699,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