From 896f7ef37de33739faef18396e0290177d32718e Mon Sep 17 00:00:00 2001 From: cornwarecjp Date: Tue, 30 Jan 2018 19:17:34 +0100 Subject: [PATCH] Make it possible to run the test suite in Python 3.4 (bytes.hex was introduced in 3.5) --- tests/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/utils.py b/tests/utils.py index ab1ca8d4a..54c1d2f8f 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -8,6 +8,7 @@ import sqlite3 import subprocess import threading import time +import binascii BITCOIND_CONFIG = { @@ -259,7 +260,7 @@ class LightningD(TailableProc): if DEVELOPER: self.cmd_line += ['--dev-broadcast-interval=1000'] if not random_hsm: - self.cmd_line += ['--dev-hsm-seed={}'.format(seed.hex())] + self.cmd_line += ['--dev-hsm-seed={}'.format(binascii.hexlify(seed).decode('ascii'))] self.cmd_line += ["--{}={}".format(k, v) for k, v in sorted(LIGHTNINGD_CONFIG.items())] self.prefix = 'lightningd(%d)' % (port)