aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/bip68-112-113-p2p.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-03-19 21:36:32 +0100
committerMarcoFalke <falke.marco@gmail.com>2016-04-05 11:55:07 +0200
commitff9b4361632cc93f8ab4b5640ed146b1a2037825 (patch)
treed0fe52b2b8c18b3f6d70c4950459722d901357b0 /qa/rpc-tests/bip68-112-113-p2p.py
parentb1dd64bffe6ead5028d3eac510b21b86f642cbba (diff)
downloadbitcoin-ff9b4361632cc93f8ab4b5640ed146b1a2037825.tar.xz
[qa] Bug fixes and refactor
Github-Pull: #7778 Rebased-From: fa524d9ddbad0a03f9eb974100fb3b6001045645 fa2cea163b49a97e2a18aa125e41170d60ce59cc faaa3c9b6546d9a64cece4ff0223f0b167feb6ff 444480649f08e6037f8ac178224b30a82e9ad72e
Diffstat (limited to 'qa/rpc-tests/bip68-112-113-p2p.py')
-rwxr-xr-xqa/rpc-tests/bip68-112-113-p2p.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/rpc-tests/bip68-112-113-p2p.py b/qa/rpc-tests/bip68-112-113-p2p.py
index 7d3c59be3e..f391cb0b7a 100755
--- a/qa/rpc-tests/bip68-112-113-p2p.py
+++ b/qa/rpc-tests/bip68-112-113-p2p.py
@@ -11,7 +11,7 @@ from test_framework.blocktools import create_coinbase, create_block
from test_framework.comptool import TestInstance, TestManager
from test_framework.script import *
from binascii import unhexlify
-import cStringIO
+from io import BytesIO
import time
'''
@@ -119,7 +119,7 @@ class BIP68_112_113Test(ComparisonTestFramework):
outputs = { to_address : amount }
rawtx = node.createrawtransaction(inputs, outputs)
tx = CTransaction()
- f = cStringIO.StringIO(unhexlify(rawtx))
+ f = BytesIO(unhexlify(rawtx))
tx.deserialize(f)
return tx
@@ -127,7 +127,7 @@ class BIP68_112_113Test(ComparisonTestFramework):
rawtx = ToHex(unsignedtx)
signresult = node.signrawtransaction(rawtx)
tx = CTransaction()
- f = cStringIO.StringIO(unhexlify(signresult['hex']))
+ f = BytesIO(unhexlify(signresult['hex']))
tx.deserialize(f)
return tx