tests/perf_bench: Skip bm_chaos test if random.randrange is unavailable.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
66fc0f45c1
commit
0a2895b099
|
@ -218,6 +218,10 @@ class Chaosgame(object):
|
||||||
###########################################################################
|
###########################################################################
|
||||||
# Benchmark interface
|
# Benchmark interface
|
||||||
|
|
||||||
|
if not hasattr(random, "randrange"):
|
||||||
|
print("SKIP")
|
||||||
|
raise SystemExit
|
||||||
|
|
||||||
bm_params = {
|
bm_params = {
|
||||||
(100, 50): (0.25, 100, 50, 50, 50, 1234),
|
(100, 50): (0.25, 100, 50, 50, 50, 1234),
|
||||||
(1000, 1000): (0.25, 200, 400, 400, 1000, 1234),
|
(1000, 1000): (0.25, 200, 400, 400, 1000, 1234),
|
||||||
|
|
Loading…
Reference in New Issue