Skip to content

Commit acfedac

Browse files
committed
[SPARK-54277][INFRA] Make dev/run-tests to ban Python 3.9 and older versions
### What changes were proposed in this pull request? This PR aims to make `dev/run-tests` to ban Python 3.9 and older versions. ### Why are the changes needed? This will prevent users from running Python 3.9 and older versions for testing. ``` $ python3 --version Python 3.9.22 $ ./python/run-tests --python-executable python3 Python versions prior to 3.10 are not supported. ``` ### Does this PR introduce _any_ user-facing change? No behavior change because this is a test change. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #52974 from dongjoon-hyun/SPARK-54277. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent e4cf867 commit acfedac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/run-tests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
FWDIR="$(cd "`dirname $0`"/..; pwd)"
2121
cd "$FWDIR"
2222

23-
PYTHON_VERSION_CHECK=$(python3 -c 'import sys; print(sys.version_info < (3, 8, 0))')
23+
PYTHON_VERSION_CHECK=$(python3 -c 'import sys; print(sys.version_info < (3, 10, 0))')
2424
if [[ "$PYTHON_VERSION_CHECK" == "True" ]]; then
25-
echo "Python versions prior to 3.8 are not supported."
25+
echo "Python versions prior to 3.10 are not supported."
2626
exit -1
2727
fi
2828

0 commit comments

Comments
 (0)