From c475deec6c69d509ac828cca437e2b9502f7b0c3 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 22 Aug 2015 09:59:25 +0200 Subject: Switched to Python 3 --- tests/share/generate.py | 5 +---- tests/share/run-test.sh | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'tests/share') diff --git a/tests/share/generate.py b/tests/share/generate.py index 271dd9c40..01a19a8d9 100644 --- a/tests/share/generate.py +++ b/tests/share/generate.py @@ -1,7 +1,4 @@ -#!/usr/bin/python - -from __future__ import division -from __future__ import print_function +#!/usr/bin/env python3 import sys import random diff --git a/tests/share/run-test.sh b/tests/share/run-test.sh index 6e880677c..18dbbc279 100755 --- a/tests/share/run-test.sh +++ b/tests/share/run-test.sh @@ -8,7 +8,7 @@ set -e rm -rf temp mkdir -p temp echo "generating tests.." -python generate.py +python3 generate.py echo "running tests.." for i in $( ls temp/*.ys | sed 's,[^0-9],,g; s,^0*\(.\),\1,g;' ); do -- cgit v1.2.3