From d07f103d68d8bb1b65cba047b9bef093b9375ebd Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Tue, 25 Mar 2025 09:53:44 +1100 Subject: [PATCH] tests: Skip bm_pidigits perf test if no arbitrary precision int support. The other performance tests run and pass with only 64-bit big integer support. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton --- tests/perf_bench/bm_pidigits.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/perf_bench/bm_pidigits.py b/tests/perf_bench/bm_pidigits.py index bdaa73cec7..c935f103c5 100644 --- a/tests/perf_bench/bm_pidigits.py +++ b/tests/perf_bench/bm_pidigits.py @@ -5,6 +5,12 @@ # This benchmark stresses big integer arithmetic. # Adapted from code on: http://benchmarksgame.alioth.debian.org/ +try: + int("0x10000000000000000", 16) +except: + print("SKIP") # No support for >64-bit integers + raise SystemExit + def compose(a, b): aq, ar, as_, at = a