diff options
-rwxr-xr-x | event_rpcgen.py | 2 | ||||
-rwxr-xr-x | make_epoll_table.py | 2 | ||||
-rwxr-xr-x | test/check-dumpevents.py | 2 | ||||
-rwxr-xr-x | test/test.sh | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/event_rpcgen.py b/event_rpcgen.py index c43e1152..c5375656 100755 --- a/event_rpcgen.py +++ b/event_rpcgen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright (c) 2005-2007 Niels Provos <provos@citi.umich.edu> # Copyright (c) 2007-2012 Niels Provos and Nick Mathewson diff --git a/make_epoll_table.py b/make_epoll_table.py index e77191c8..37d6df1e 100755 --- a/make_epoll_table.py +++ b/make_epoll_table.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 def get(old,wc,rc): if ('xxx' in (rc, wc)): diff --git a/test/check-dumpevents.py b/test/check-dumpevents.py index 7d749323..16fe9bc9 100755 --- a/test/check-dumpevents.py +++ b/test/check-dumpevents.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # # Post-process the output of test-dumpevents and check it for correctness. # diff --git a/test/test.sh b/test/test.sh index 610a2795..d47bd2d8 100755 --- a/test/test.sh +++ b/test/test.sh @@ -76,8 +76,8 @@ run_tests () { fi done announce_n " test-dumpevents: " - if python -c 'import sys; assert(sys.version_info >= (2, 4))' 2>/dev/null; then - if $TEST_DIR/test-dumpevents | python $TEST_SRC_DIR/check-dumpevents.py >> "$TEST_OUTPUT_FILE" ; + if python2 -c 'import sys; assert(sys.version_info >= (2, 4))' 2>/dev/null; then + if $TEST_DIR/test-dumpevents | python2 $TEST_SRC_DIR/check-dumpevents.py >> "$TEST_OUTPUT_FILE" ; then announce OKAY ; else |