aboutsummaryrefslogtreecommitdiff
path: root/tests/functional_tests/cold_signing.py
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-06-01 20:27:41 +0200
committerRiccardo Spagni <ric@spagni.net>2019-06-01 20:27:41 +0200
commit51766d026bb0337d7bff17f1e3c0c403b21eaefd (patch)
tree4ff11a8d0caac85ba17efb01598fb8546a7752ff /tests/functional_tests/cold_signing.py
parentMerge pull request #5577 (diff)
parentfunctional_tests: fix python3 compatibility (diff)
downloadmonero-51766d026bb0337d7bff17f1e3c0c403b21eaefd.tar.xz
Merge pull request #5583
77594c4f functional_tests: fix python3 compatibility (moneromooo-monero)
Diffstat (limited to 'tests/functional_tests/cold_signing.py')
-rwxr-xr-xtests/functional_tests/cold_signing.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/functional_tests/cold_signing.py b/tests/functional_tests/cold_signing.py
index 59a879e0a..a722d8927 100755
--- a/tests/functional_tests/cold_signing.py
+++ b/tests/functional_tests/cold_signing.py
@@ -28,11 +28,10 @@
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
# THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-import time
-
"""Test cold tx signing
"""
+from __future__ import print_function
from framework.daemon import Daemon
from framework.wallet import Wallet
@@ -44,13 +43,13 @@ class ColdSigningTest():
self.transfer()
def reset(self):
- print 'Resetting blockchain'
+ print('Resetting blockchain')
daemon = Daemon()
daemon.pop_blocks(1000)
daemon.flush_txpool()
def create(self, idx):
- print 'Creating hot and cold wallet'
+ print('Creating hot and cold wallet')
self.hot_wallet = Wallet(idx = 0)
# close the wallet if any, will throw if none is loaded
@@ -116,7 +115,7 @@ class ColdSigningTest():
assert len(res.unsigned_txset) > 0
unsigned_txset = res.unsigned_txset
- print 'Signing transaction with cold wallet'
+ print('Signing transaction with cold wallet')
res = self.cold_wallet.describe_transfer(unsigned_txset = unsigned_txset)
assert len(res.desc) == 1
desc = res.desc[0]
@@ -140,7 +139,7 @@ class ColdSigningTest():
txid = res.tx_hash_list[0]
assert len(txid) == 64
- print 'Submitting transaction with hot wallet'
+ print('Submitting transaction with hot wallet')
res = self.hot_wallet.submit_transfer(signed_txset)
assert len(res.tx_hash_list) > 0
assert res.tx_hash_list[0] == txid