summaryrefslogtreecommitdiff
path: root/tests/multi_net/sslcontext_getpeercert.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-08-12 10:48:16 +1000
committerDamien George <damien@micropython.org>2025-08-15 01:03:00 +1000
commit2bba507148e8a751123257fa2b075c70d67e1160 (patch)
tree830d4592b946e1709fdb730df51cd22cf2ec73a2 /tests/multi_net/sslcontext_getpeercert.py
parenta279c64046445c9dbde0a5d3d53d467cb7e43550 (diff)
tests: Require SSL certificate file to be available for test to run.
Previously, any test needing an SSL certificate file would automatically skip if the file could not be found. But that makes it too easy to accidentally skip tests. Instead, change it so that the test fails if the certificate file doesn't exist. That matches, for example, the fact that the test fails if networking (LAN, WiFi) is not active. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/multi_net/sslcontext_getpeercert.py')
-rw-r--r--tests/multi_net/sslcontext_getpeercert.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/multi_net/sslcontext_getpeercert.py b/tests/multi_net/sslcontext_getpeercert.py
index e9d96be24..e2d2a4251 100644
--- a/tests/multi_net/sslcontext_getpeercert.py
+++ b/tests/multi_net/sslcontext_getpeercert.py
@@ -15,13 +15,6 @@ PORT = 8000
cert = cafile = "ec_cert.der"
key = "ec_key.der"
-try:
- os.stat(cafile)
- os.stat(key)
-except OSError:
- print("SKIP")
- raise SystemExit
-
# Server
def instance0():