mirror of
https://github.com/micropython/micropython.git
synced 2025-12-16 09:50:15 +01:00
tests/extmod/asyncio_heaplock.py: Improve skip detection of test.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -4,7 +4,11 @@
|
|||||||
# - StreamWriter.write, stream is blocked and data to write is a bytes object
|
# - StreamWriter.write, stream is blocked and data to write is a bytes object
|
||||||
# - StreamWriter.write, when stream is not blocked
|
# - StreamWriter.write, when stream is not blocked
|
||||||
|
|
||||||
import micropython
|
try:
|
||||||
|
import asyncio, micropython
|
||||||
|
except ImportError:
|
||||||
|
print("SKIP")
|
||||||
|
raise SystemExit
|
||||||
|
|
||||||
# strict stackless builds can't call functions without allocating a frame on the heap
|
# strict stackless builds can't call functions without allocating a frame on the heap
|
||||||
try:
|
try:
|
||||||
@@ -24,12 +28,6 @@ except RuntimeError:
|
|||||||
print("SKIP")
|
print("SKIP")
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
try:
|
|
||||||
import asyncio
|
|
||||||
except ImportError:
|
|
||||||
print("SKIP")
|
|
||||||
raise SystemExit
|
|
||||||
|
|
||||||
|
|
||||||
class TestStream:
|
class TestStream:
|
||||||
def __init__(self, blocked):
|
def __init__(self, blocked):
|
||||||
|
|||||||
Reference in New Issue
Block a user