From: Ross Lagerwall Date: Mon, 26 Mar 2012 18:12:45 +0000 (+0200) Subject: Require at least Python 2.4 for check-dumpevents.py. X-Git-Tag: release-2.1.1-alpha~22^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=029a3db3546b76c5d725d5282979dc82da3ddab2;p=libevent Require at least Python 2.4 for check-dumpevents.py. --- diff --git a/test/test.sh b/test/test.sh index 4ebd9566..ae0ca8f1 100755 --- a/test/test.sh +++ b/test/test.sh @@ -106,7 +106,7 @@ run_tests () { FAILED=yes fi announce_n " test-dumpevents: " - if test "`which python 2>/dev/null`" != ""; then + if python -c 'import sys; assert(sys.version_info >= (2, 4))' 2>/dev/null; then if $TEST_DIR/test-dumpevents | python $TEST_DIR/check-dumpevents.py >> "$TEST_OUTPUT_FILE" ; then announce OKAY ;