Damien George
1 year ago
2 changed files with 15 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||
# Test ssl.wrap_socket() with cadata passed in. |
|||
|
|||
try: |
|||
import io |
|||
import ssl |
|||
except ImportError: |
|||
print("SKIP") |
|||
raise SystemExit |
|||
|
|||
# Invalid cadata. |
|||
try: |
|||
ssl.wrap_socket(io.BytesIO(), cadata=b"!") |
|||
except ValueError as er: |
|||
print(repr(er)) |
@ -0,0 +1 @@ |
|||
ValueError('invalid cert',) |
Loading…
Reference in new issue