]> granicus.if.org Git - libevent/commitdiff
Require at least Python 2.4 for check-dumpevents.py.
authorRoss Lagerwall <rosslagerwall@gmail.com>
Mon, 26 Mar 2012 18:12:45 +0000 (20:12 +0200)
committerRoss Lagerwall <rosslagerwall@gmail.com>
Mon, 26 Mar 2012 18:12:45 +0000 (20:12 +0200)
test/test.sh

index 4ebd9566e39958c087026f1c2a5ec1fba2523b63..ae0ca8f15ed14731b057a01218df4f0aaaac0d62 100755 (executable)
@@ -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 ;