Merge #7853: [qa] py2: Unfiddle strings into bytes explicitly

faa41ee [qa] py2: Unfiddle strings into bytes explicitly (MarcoFalke)
This commit is contained in:
Wladimir J. van der Laan
2016-04-14 16:38:07 +02:00
28 changed files with 205 additions and 213 deletions

View File

@@ -2,6 +2,7 @@
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from __future__ import division,print_function,unicode_literals
from io import open
import subprocess
import os
import json
@@ -16,7 +17,7 @@ def bctest(testDir, testObj, exeext):
inputData = None
if "input" in testObj:
filename = testDir + "/" + testObj['input']
inputData = open(filename).read()
inputData = open(filename, 'rb').read()
stdinCfg = subprocess.PIPE
outputFn = None