(self, typ, name)
| 7086 | class LinuxKernelCryptoAPI(unittest.TestCase): |
| 7087 | # tests for AF_ALG |
| 7088 | def create_alg(self, typ, name): |
| 7089 | sock = socket.socket(socket.AF_ALG, socket.SOCK_SEQPACKET, 0) |
| 7090 | try: |
| 7091 | sock.bind((typ, name)) |
| 7092 | except FileNotFoundError as e: |
| 7093 | # type / algorithm is not available |
| 7094 | sock.close() |
| 7095 | raise unittest.SkipTest(str(e), typ, name) |
| 7096 | else: |
| 7097 | return sock |
| 7098 | |
| 7099 | # bpo-31705: On kernel older than 4.5, sendto() failed with ENOKEY, |
| 7100 | # at least on ppc64le architecture |
no test coverage detected