mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 04:00:28 +01:00
tests/basic: Make various tests skippable.
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
# test builtin sorted
|
||||
try:
|
||||
sorted
|
||||
set
|
||||
except:
|
||||
import sys
|
||||
print("SKIP")
|
||||
sys.exit()
|
||||
|
||||
print(sorted(set(range(100))))
|
||||
print(sorted(set(range(100)), key=lambda x: x + 100*(x % 2)))
|
||||
|
||||
Reference in New Issue
Block a user