Check whether CAN J1939 sockets are supported on this host.
()
| 125 | return True |
| 126 | |
| 127 | def _have_socket_can_j1939(): |
| 128 | """Check whether CAN J1939 sockets are supported on this host.""" |
| 129 | try: |
| 130 | s = socket.socket(socket.PF_CAN, socket.SOCK_DGRAM, socket.CAN_J1939) |
| 131 | except (AttributeError, OSError): |
| 132 | return False |
| 133 | else: |
| 134 | s.close() |
| 135 | return True |
| 136 | |
| 137 | def _have_socket_rds(): |
| 138 | """Check whether RDS sockets are supported on this host.""" |
no test coverage detected
searching dependent graphs…