summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-05-09 22:47:46 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2017-05-10 13:42:31 (GMT)
commita8f04a6f9cd76ebc034a4596c70d4ce0e2cb17a2 (patch)
treed78c5c84b83a24cc84db00f3a13533fb52c8f9f0 /Tests
parentb69e061b8073efbd2c356f4508ea401c85e8dae3 (diff)
downloadCMake-a8f04a6f9cd76ebc034a4596c70d4ce0e2cb17a2.zip
CMake-a8f04a6f9cd76ebc034a4596c70d4ce0e2cb17a2.tar.gz
CMake-a8f04a6f9cd76ebc034a4596c70d4ce0e2cb17a2.tar.bz2
Tests/Server: import print_function from the future
This makes the output much more readable. Suggested-by: Matt Soucy
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Server/cmakelib.py5
-rw-r--r--Tests/Server/server-test.py1
2 files changed, 4 insertions, 2 deletions
diff --git a/Tests/Server/cmakelib.py b/Tests/Server/cmakelib.py
index d11431d..78450d5 100644
--- a/Tests/Server/cmakelib.py
+++ b/Tests/Server/cmakelib.py
@@ -1,3 +1,4 @@
+from __future__ import print_function
import sys, subprocess, json
termwidth = 150
@@ -13,8 +14,8 @@ def ordered(obj):
return obj
def col_print(title, array):
- print
- print
+ print()
+ print()
print(title)
indentwidth = 4
diff --git a/Tests/Server/server-test.py b/Tests/Server/server-test.py
index 14767f4..62d9008 100644
--- a/Tests/Server/server-test.py
+++ b/Tests/Server/server-test.py
@@ -1,3 +1,4 @@
+from __future__ import print_function
import sys, cmakelib, json, os, shutil
debug = True