https://github.com/python/cpython/commit/ef70f029255b10faf659a54f79f9de4c003ec331
commit: ef70f029255b10faf659a54f79f9de4c003ec331
branch: main
author: Serhiy Storchaka <storch...@gmail.com>
committer: serhiy-storchaka <storch...@gmail.com>
date: 2025-04-05T16:41:57+03:00
summary:

Skip a test for Bluetooth HCI socket (added in GH-132023) if it fails 
(GH-132072)

files:
M Lib/test/test_socket.py

diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index ab17d19484d358..41885406ec3409 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -2725,7 +2725,12 @@ def testBindHciSocket(self):
                 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)
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to