diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-04-14 16:38:07 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-04-14 17:40:31 +0200 |
commit | 6ef5e000a26be15919a4006f4b879fcaea8915c5 (patch) | |
tree | 4a280dbaa57968cb89fb57b3d8694d2621aa273d /src | |
parent | 430fffefaab6832b8f6605f14a992e7e55b9547e (diff) | |
parent | faa41ee204124da19dcf1e5b8a3aef1e216bf5e6 (diff) |
Merge #7853: [qa] py2: Unfiddle strings into bytes explicitly
faa41ee [qa] py2: Unfiddle strings into bytes explicitly (MarcoFalke)
Diffstat (limited to 'src')
-rw-r--r-- | src/test/bctest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/bctest.py b/src/test/bctest.py index 8105b87ffa..fc59152ba1 100644 --- a/src/test/bctest.py +++ b/src/test/bctest.py @@ -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 |