Skip to content

Commit

Permalink
skip docs tests with python <3.12
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Jan 24, 2025
1 parent ca555b4 commit 66199b9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/library/packages/Python/doc-examples/SKIPIF
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# requires python 3.12+

# respect CHPL_TEST_VENV_DIR if it is set and not none
if [ -n "$CHPL_TEST_VENV_DIR" ] && [ "$CHPL_TEST_VENV_DIR" != "none" ]; then
chpl_python=$CHPL_TEST_VENV_DIR/bin/python3
else
chpl_python=$($CHPL_HOME/util/config/find-python.sh)
fi

minor_version=$($chpl_python -c "import sys; print(sys.version_info.minor)")
if [ $minor_version -ge 12 ]; then
echo "False"
else
echo "True"
fi

0 comments on commit 66199b9

Please sign in to comment.