summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2025-10-03 23:02:55 +1000
committerDamien George <damien@micropython.org>2025-10-20 11:56:06 +1100
commitc5dc84c7972e58f127f8c70a2c1fe2f49e488bc9 (patch)
tree883e9bac9b2a87a12285e8a7cd4c8a4042cdd299 /tests
parent60edfeeead49cba018c9695a0fa10f812b1e04d9 (diff)
tests: Move ports/esp32/resolve_on_connect.py to net_inet.
The main reason for moving this test is that it needs internet connection to pass. So putting it in `net_inet` makes sure it's alongside other tests that need the internet. Also, it's a general test that could eventually run on other ports, if/when they support doing an address resolution as part of `socket.connect()`. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/net_inet/resolve_on_connect.py (renamed from tests/ports/esp32/resolve_on_connect.py)6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ports/esp32/resolve_on_connect.py b/tests/net_inet/resolve_on_connect.py
index e604ce9ca..cd8bb9a1d 100644
--- a/tests/ports/esp32/resolve_on_connect.py
+++ b/tests/net_inet/resolve_on_connect.py
@@ -1,11 +1,13 @@
-# Test that the esp32's socket module performs DNS resolutions on bind and connect
+# Test that the socket module performs DNS resolutions on bind and connect.
+# Currenty only the esp32 port does this, so the test is restricted to that port.
+
import sys
if sys.implementation.name == "micropython" and sys.platform != "esp32":
print("SKIP")
raise SystemExit
-import socket, sys
+import socket
def test_bind_resolves_0_0_0_0():