mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 11:10:14 +01:00
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>
This commit is contained in:
@@ -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():
|
||||
Reference in New Issue
Block a user