Skip to content

Commit

Permalink
Add UCS-4 support check for Python in build-css-testsuites.sh
Browse files Browse the repository at this point in the history
CSS test suite build system requires Python UCS-4 support.
Add this check in css/build-css-testsuites.sh.
Fix: web-platform-tests#5504
  • Loading branch information
qiuzhong committed Oct 24, 2018
1 parent 6f338ac commit 00b6193
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions css/build-css-testsuites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ main() {
exit 1
fi

if [ `$PYTHON -c 'import sys; print(sys.maxunicode)'` != "1114111" ]; then
echo "UCS-4 support for Python is required"
exit 1
fi

virtualenv -p $PYTHON $VENV || { echo "Please ensure virtualenv is installed"; exit 2; }
fi

Expand Down

0 comments on commit 00b6193

Please sign in to comment.