diff options
author | Thorsten von Eicken <tve@voneicken.com> | 2020-07-02 12:34:36 -0700 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-07-21 00:31:05 +1000 |
commit | 5264478007c78b7737972404bda18ab39d792e17 (patch) | |
tree | 3f7f306fa13429b4fa57a44d251dc56a5e3c6551 /tests/net_inet/tls_text_errors.py | |
parent | 3e758ef235793502061edd122cd5cd91172faf51 (diff) |
extmod/modussl_mbedtls: Integrate shorter error strings.
The stm32 and esp32 ports now use shorter error strings for mbedtls errors.
Also, MBEDTLS_ERROR_C is enabled on stm32 by default to get these strings.
Diffstat (limited to 'tests/net_inet/tls_text_errors.py')
-rw-r--r-- | tests/net_inet/tls_text_errors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/net_inet/tls_text_errors.py b/tests/net_inet/tls_text_errors.py index 2ba167b86..9e8ccfaf9 100644 --- a/tests/net_inet/tls_text_errors.py +++ b/tests/net_inet/tls_text_errors.py @@ -14,10 +14,10 @@ def test(addr): print("wrap: no exception") except OSError as e: # mbedtls produces "mbedtls -0x7200: SSL - An invalid SSL record was received" - # axtls produces "RECORD_OVERFLOW" + # axtls produces "RECORD_OVERFLOW" but also prints "TLS buffer overflow,..." # CPython produces "[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1108)" ok = ( - "invalid SSL record" in str(e) + "SSL_INVALID_RECORD" in str(e) or "RECORD_OVERFLOW" in str(e) or "wrong version" in str(e) ) |