https://github.com/python/cpython/commit/6074017ec7f0612dae5bcdf3ee418a54a17aecd2
commit: 6074017ec7f0612dae5bcdf3ee418a54a17aecd2
branch: 3.13
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: serhiy-storchaka <storch...@gmail.com>
date: 2025-04-05T14:05:27Z
summary:

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

(cherry picked from commit ef70f029255b10faf659a54f79f9de4c003ec331)

Co-authored-by: Serhiy Storchaka <storch...@gmail.com>

files:
M Lib/test/test_socket.py

diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index da9e760b7f0093..02413c6056aa76 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -2699,7 +2699,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