Browse Source

Make it possible to run the test suite in Python 3.4 (bytes.hex was introduced in 3.5)

ppa-0.6.1
cornwarecjp 7 years ago
committed by Christian Decker
parent
commit
896f7ef37d
  1. 3
      tests/utils.py

3
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)

Loading…
Cancel
Save