File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
@tests/stubtest_allowlists Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ select.poll # Actually a function; we have a class so it can be used as a type
3030# Bluetooth constants which aren't on the GitHub Actions runners, see #15207
3131_?socket.AF_BLUETOOTH
3232_?socket.BDADDR_ANY
33+ _?socket.BDADDR_LOCAL
3334_?socket.BTPROTO_HCI
3435_?socket.BTPROTO_L2CAP
3536_?socket.BTPROTO_RFCOMM
Original file line number Diff line number Diff line change @@ -522,6 +522,7 @@ if sys.platform != "win32":
522522if sys .platform != "darwin" :
523523 from _socket import BDADDR_ANY as BDADDR_ANY , BDADDR_LOCAL as BDADDR_LOCAL , BTPROTO_RFCOMM as BTPROTO_RFCOMM
524524
525+ if sys .platform != "darwin" and sys .platform != "linux" :
525526 __all__ += ["BDADDR_ANY" , "BDADDR_LOCAL" , "BTPROTO_RFCOMM" ]
526527
527528if sys .platform == "darwin" and sys .version_info >= (3 , 10 ):
@@ -966,12 +967,13 @@ if sys.platform != "win32":
966967
967968if sys .platform != "linux" :
968969 __all__ += ["AF_LINK" ]
969- if sys .platform != "darwin" :
970+ if sys .platform != "darwin" and sys . platform != "linux" :
970971 __all__ += ["AF_BLUETOOTH" ]
971972
972973if sys .platform != "win32" and sys .platform != "darwin" :
973974 from _socket import BTPROTO_HCI as BTPROTO_HCI , BTPROTO_L2CAP as BTPROTO_L2CAP , BTPROTO_SCO as BTPROTO_SCO
974975
976+ if sys .platform != "win32" and sys .platform != "darwin" and sys .platform != "linux" :
975977 __all__ += ["BTPROTO_HCI" , "BTPROTO_L2CAP" , "BTPROTO_SCO" ]
976978
977979if sys .platform != "win32" and sys .platform != "darwin" and sys .platform != "linux" :
You can’t perform that action at this time.
0 commit comments