diff --git a/tests/timeit/35.match.01.py b/tests/timeit/35.match.01.py index cb44938b..a3334012 100644 --- a/tests/timeit/35.match.01.py +++ b/tests/timeit/35.match.01.py @@ -32,6 +32,11 @@ import timeit from typing import List, Tuple, Iterator +# match statement requires Python 3.10+ +if sys.version_info < (3, 10): + print("This test requires Python 3.10 or higher (match statement not available)") + sys.exit(0) + def test_ti_01_01_ma(): ret = 0 for i in range(1000):