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

Skip to content

Commit 9fd55c7

Browse files
Skip a test for Bluetooth HCI socket (added in GH-132023) if it fails
1 parent 2ccd6aa commit 9fd55c7

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,))
< 7784 div aria-hidden="true" class="position-absolute top-0 d-flex user-select-none DiffLineTableCellParts-module__comment-indicator--eI0hb">
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