summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@freehaven.net>2012-03-26 11:21:51 -0700
committerNick Mathewson <nickm@freehaven.net>2012-03-26 11:21:51 -0700
commit7f62f4ab2e5950dbb9ce0885f93344501e008092 (patch)
tree7631ccfc772513fcea836e12b1d3838be2592207
parentd8a7853ed0f8bb07fff5f65b0fc111e2ba8e5ee8 (diff)
parent029a3db3546b76c5d725d5282979dc82da3ddab2 (diff)
downloadlibevent-7f62f4ab2e5950dbb9ce0885f93344501e008092.tar.gz
Merge pull request #48 from rosslagerwall/py-version
Require python version
-rwxr-xr-xtest/test.sh2
1 files changed, 1 insertions, 1 deletions
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 ;