Fix Python test scripts for Python 3 and Windows

This commit is contained in:
datadiode
2015-01-11 10:39:24 +01:00
committed by Christopher Dunn
parent 59a01652ab
commit 01aee4a0dc
2 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ def runAllTests( exe_path, use_valgrind=False ):
if not status:
print("Failed to obtain unit tests list:\n" + test_names, file=sys.stderr)
return 1
test_names = [name.strip() for name in test_names.strip().split('\n')]
test_names = [name.strip() for name in test_names.decode('utf-8').strip().split('\n')]
failures = []
for name in test_names:
print('TESTING %s:' % name, end=' ')