[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:
Miss Islington (bot) 2025-04-05 16:05:27 +02:00 committed by GitHub
parent a5ed92025b
commit 6074017ec7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)