aboutsummaryrefslogtreecommitdiff
path: root/tests/functional_tests/mining.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/mining.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/mining.py')
-rwxr-xr-xtests/functional_tests/mining.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/functional_tests/mining.py b/tests/functional_tests/mining.py
index 78dc68640..5c14d34fd 100755
--- a/tests/functional_tests/mining.py
+++ b/tests/functional_tests/mining.py
@@ -28,6 +28,7 @@
# 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.
+from __future__ import print_function
import time
"""Test daemon mining RPC calls
@@ -48,13 +49,13 @@ class MiningTest():
self.mine()
def reset(self):
- print 'Resetting blockchain'
+ print('Resetting blockchain')
daemon = Daemon()
daemon.pop_blocks(1000)
daemon.flush_txpool()
def create(self):
- print 'Creating wallet'
+ print('Creating wallet')
wallet = Wallet()
# close the wallet if any, will throw if none is loaded
try: wallet.close_wallet()
@@ -62,7 +63,7 @@ class MiningTest():
res = wallet.restore_deterministic_wallet(seed = 'velvet lymph giddy number token physics poetry unquoted nibs useful sabotage limits benches lifestyle eden nitrogen anvil fewest avoid batch vials washing fences goat unquoted')
def mine(self):
- print "Test mining"
+ print("Test mining")
daemon = Daemon()
wallet = Wallet()