Browse code

run python3 for run-tests.py

Shaform authored on 2016/12/08 08:51:42
Showing 2 changed files
... ...
@@ -7,7 +7,7 @@
7 7
 ## License: GPL Version 2
8 8
 ## Copyright: TGRMN Software and contributors
9 9
 
10
-from __future__ import print_function
10
+from __future__ import absolute_import, print_function
11 11
 
12 12
 import sys
13 13
 import os
... ...
@@ -7,7 +7,7 @@
7 7
 ## License: GPL Version 2
8 8
 ## Copyright: TGRMN Software and contributors
9 9
 
10
-from __future__ import print_function
10
+from __future__ import absolute_import, print_function
11 11
 
12 12
 import sys
13 13
 import os
... ...
@@ -192,7 +192,7 @@ def test(label, cmd_args = [], retcode = 0, must_find = [], must_not_find = [],
192 192
 
193 193
 def test_s3cmd(label, cmd_args = [], **kwargs):
194 194
     if not cmd_args[0].endswith("s3cmd"):
195
-        cmd_args.insert(0, "python2")
195
+        cmd_args.insert(0, "python")
196 196
         cmd_args.insert(1, "s3cmd")
197 197
         if config_file:
198 198
             cmd_args.insert(2, "-c")