diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-04-14 16:38:07 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-04-14 17:40:31 +0200 |
| commit | 6ef5e000a26be15919a4006f4b879fcaea8915c5 (patch) | |
| tree | 4a280dbaa57968cb89fb57b3d8694d2621aa273d /src/test | |
| parent | Merge #7812: Tiny refactor of `IsRBFOptIn`, avoid exception (diff) | |
| parent | [qa] py2: Unfiddle strings into bytes explicitly (diff) | |
| download | discoin-6ef5e000a26be15919a4006f4b879fcaea8915c5.tar.xz discoin-6ef5e000a26be15919a4006f4b879fcaea8915c5.zip | |
Merge #7853: [qa] py2: Unfiddle strings into bytes explicitly
faa41ee [qa] py2: Unfiddle strings into bytes explicitly (MarcoFalke)
Diffstat (limited to 'src/test')
| -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 8105b87ff..fc59152ba 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 |