mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
[qa] Switch to py3
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python2
|
||||
# Copyright (c) 2014-2015 The Bitcoin Core developers
|
||||
#!/usr/bin/env python3
|
||||
# Copyright (c) 2014-2016 The Bitcoin Core developers
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
@@ -82,34 +82,34 @@ class ReplaceByFeeTest(BitcoinTestFramework):
|
||||
def run_test(self):
|
||||
make_utxo(self.nodes[0], 1*COIN)
|
||||
|
||||
print "Running test simple doublespend..."
|
||||
print("Running test simple doublespend...")
|
||||
self.test_simple_doublespend()
|
||||
|
||||
print "Running test doublespend chain..."
|
||||
print("Running test doublespend chain...")
|
||||
self.test_doublespend_chain()
|
||||
|
||||
print "Running test doublespend tree..."
|
||||
print("Running test doublespend tree...")
|
||||
self.test_doublespend_tree()
|
||||
|
||||
print "Running test replacement feeperkb..."
|
||||
print("Running test replacement feeperkb...")
|
||||
self.test_replacement_feeperkb()
|
||||
|
||||
print "Running test spends of conflicting outputs..."
|
||||
print("Running test spends of conflicting outputs...")
|
||||
self.test_spends_of_conflicting_outputs()
|
||||
|
||||
print "Running test new unconfirmed inputs..."
|
||||
print("Running test new unconfirmed inputs...")
|
||||
self.test_new_unconfirmed_inputs()
|
||||
|
||||
print "Running test too many replacements..."
|
||||
print("Running test too many replacements...")
|
||||
self.test_too_many_replacements()
|
||||
|
||||
print "Running test opt-in..."
|
||||
print("Running test opt-in...")
|
||||
self.test_opt_in()
|
||||
|
||||
print "Running test prioritised transactions..."
|
||||
print("Running test prioritised transactions...")
|
||||
self.test_prioritised_transactions()
|
||||
|
||||
print "Passed\n"
|
||||
print("Passed\n")
|
||||
|
||||
def test_simple_doublespend(self):
|
||||
"""Simple doublespend"""
|
||||
@@ -459,7 +459,7 @@ class ReplaceByFeeTest(BitcoinTestFramework):
|
||||
except JSONRPCException as exp:
|
||||
assert_equal(exp.error['code'], -26)
|
||||
else:
|
||||
print tx1b_txid
|
||||
print(tx1b_txid)
|
||||
assert(False)
|
||||
|
||||
tx1_outpoint = make_utxo(self.nodes[0], int(1.1*COIN))
|
||||
|
||||
Reference in New Issue
Block a user