summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/micropython/native_while.py13
-rw-r--r--tests/micropython/native_while.py.exp (renamed from tests/pybnative/while.py.exp)0
-rw-r--r--tests/pybnative/while.py17
-rwxr-xr-xtests/run-tests.py2
4 files changed, 14 insertions, 18 deletions
diff --git a/tests/micropython/native_while.py b/tests/micropython/native_while.py
new file mode 100644
index 000000000..ccf0ae0e0
--- /dev/null
+++ b/tests/micropython/native_while.py
@@ -0,0 +1,13 @@
+# test native while loop
+
+
+@micropython.native
+def f(n):
+ i = 0
+ while i < n:
+ print(i)
+ i += 1
+
+
+f(2)
+f(4)
diff --git a/tests/pybnative/while.py.exp b/tests/micropython/native_while.py.exp
index d95e7f145..d95e7f145 100644
--- a/tests/pybnative/while.py.exp
+++ b/tests/micropython/native_while.py.exp
diff --git a/tests/pybnative/while.py b/tests/pybnative/while.py
deleted file mode 100644
index 10625e871..000000000
--- a/tests/pybnative/while.py
+++ /dev/null
@@ -1,17 +0,0 @@
-import time, pyb
-
-
-@micropython.native
-def f(led, n, d):
- led.off()
- i = 0
- while i < n:
- print(i)
- led.toggle()
- time.sleep_ms(d)
- i += 1
- led.off()
-
-
-f(pyb.LED(1), 2, 150)
-f(pyb.LED(2), 4, 50)
diff --git a/tests/run-tests.py b/tests/run-tests.py
index 5b08ad2bb..7377e8ae2 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -941,7 +941,7 @@ the last matching regex is used:
)
if args.target == "pyboard":
# run pyboard tests
- test_dirs += ("float", "stress", "pyb", "pybnative", "inlineasm")
+ test_dirs += ("float", "stress", "pyb", "inlineasm")
elif args.target in ("renesas-ra"):
test_dirs += ("float", "inlineasm", "renesas-ra")
elif args.target == "rp2":