summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/extmod/machine_soft_timer.py4
-rw-r--r--tests/extmod/machine_spi_rate.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/extmod/machine_soft_timer.py b/tests/extmod/machine_soft_timer.py
index bff9af5b8..1e9c66aa2 100644
--- a/tests/extmod/machine_soft_timer.py
+++ b/tests/extmod/machine_soft_timer.py
@@ -2,8 +2,8 @@
import sys
-if sys.platform == "esp32":
- print("SKIP") # TODO: Implement soft timers for esp32 port
+if sys.platform in ("esp32", "esp8266"):
+ print("SKIP") # TODO: Implement soft timers for esp32/esp8266 ports
raise SystemExit
diff --git a/tests/extmod/machine_spi_rate.py b/tests/extmod/machine_spi_rate.py
index 19371d3bd..7022955a3 100644
--- a/tests/extmod/machine_spi_rate.py
+++ b/tests/extmod/machine_spi_rate.py
@@ -26,6 +26,9 @@ elif "esp32" in sys.platform:
spi_instances = ((1, Pin(4), Pin(5), Pin(6)),)
else:
spi_instances = ((1, Pin(18), Pin(19), Pin(21)), (2, Pin(18), Pin(19), Pin(21)))
+elif "esp8266" in sys.platform:
+ MAX_DELTA_MS = 50 # port requires much looser timing requirements
+ spi_instances = ((1, None, None, None),) # explicit pin choice not allowed
else:
print("Please add support for this test on this platform.")
raise SystemExit