8000 Skip a test for Bluetooth HCI socket (added in GH-132023) if it fails… · python/cpython@ef70f02 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef70f02

Browse files
Skip a test for Bluetooth HCI socket (added in GH-132023) if it fails (GH-132072)
1 parent bfc292a commit ef70f02

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Lib/test/test_socket.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2725,7 +2725,12 @@ def testBindHciSocket(self):
27252725
self.assertEqual(addr, socket.BDADDR_ANY)
27262726
else:
27272727
dev = 0
2728-
s.bind((dev,))
2728+
try:
2729+
s.bind((dev,))
2730+
except OSError as err:
2731+
if err.errno in (errno.EINVAL, errno.ENODEV):
2732+
self.skipTest(str(err))
2733+
raise
27292734
addr = s.getsockname()
27302735
self.assertEqual(addr, dev)
27312736

0 commit comments

Comments
 (0)
0