Skip to content

Commit a34b5d1

Browse files
committed
tests/net_inet/tls_text_errors.py: Tweak test for newer CPython version.
Signed-off-by: Damien George <damien@micropython.org>
1 parent e1111d8 commit a34b5d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/net_inet/tls_text_errors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ def test(addr):
1717
# mbedtls produces "mbedtls -0x7200: SSL - An invalid SSL record was received"
1818
# axtls produces "RECORD_OVERFLOW" but also prints "TLS buffer overflow,..."
1919
# CPython produces "[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1108)"
20+
# CPython newer version produces "[SSL] record layer failure (_ssl.c:1000)"
2021
ok = (
2122
"SSL_INVALID_RECORD" in str(e)
2223
or "RECORD_OVERFLOW" in str(e)
2324
or "wrong version" in str(e)
25+
or "record layer failure" in str(e)
2426
)
2527
print("wrap:", ok)
2628
if not ok:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy