aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2016-04-10 16:54:28 +0200
committerMarcoFalke <[email protected]>2016-04-10 20:35:57 +0200
commitfaa41ee204124da19dcf1e5b8a3aef1e216bf5e6 (patch)
tree4b33bcb6db57bcde90e12d1b0e9140c4d8cb32ba /src
parentMerge #7835: Version 2 transactions remain non-standard until CSV activates (diff)
downloaddiscoin-faa41ee204124da19dcf1e5b8a3aef1e216bf5e6.tar.xz
discoin-faa41ee204124da19dcf1e5b8a3aef1e216bf5e6.zip
[qa] py2: Unfiddle strings into bytes explicitly
Diffstat (limited to 'src')
-rw-r--r--src/test/bctest.py3
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