diff options
| author | Thorsten von Eicken | 2020-07-02 12:34:36 -0700 |
|---|---|---|
| committer | Damien George | 2020-07-21 00:31:05 +1000 |
| commit | 5264478007c78b7737972404bda18ab39d792e17 (patch) | |
| tree | 3f7f306fa13429b4fa57a44d251dc56a5e3c6551 /tests/net_inet | |
| 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')
| -rw-r--r-- | tests/net_inet/test_tls_sites.py | 2 | ||||
| -rw-r--r-- | tests/net_inet/tls_text_errors.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/net_inet/test_tls_sites.py b/tests/net_inet/test_tls_sites.py index 876343acf..d2cb928c8 100644 --- a/tests/net_inet/test_tls_sites.py +++ b/tests/net_inet/test_tls_sites.py @@ -54,7 +54,7 @@ def main(): test_one(site, opts) print(site, "ok") except Exception as e: - print(site, repr(e)) + print(site, e) main() 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) ) |
