tests: quiet down DeprecationWarnings for escape sequences

Nuke all the `DeprecationWarning: invalid escape sequence
\[` messages that show up when you run python tests.
This commit is contained in:
lisa neigut
2018-10-04 11:51:49 -07:00
committed by Christian Decker
parent d6fcfe00c7
commit a9bf1f5573
3 changed files with 47 additions and 47 deletions

View File

@@ -516,14 +516,14 @@ class LightningNode(object):
# We wait until gossipd sees both local updates, as well as status NORMAL,
# so it can definitely route through.
self.daemon.wait_for_logs(['update for channel {}\(0\) now ACTIVE'
self.daemon.wait_for_logs([r'update for channel {}\(0\) now ACTIVE'
.format(scid),
'update for channel {}\(1\) now ACTIVE'
r'update for channel {}\(1\) now ACTIVE'
.format(scid),
'to CHANNELD_NORMAL'])
l2.daemon.wait_for_logs(['update for channel {}\(0\) now ACTIVE'
l2.daemon.wait_for_logs([r'update for channel {}\(0\) now ACTIVE'
.format(scid),
'update for channel {}\(1\) now ACTIVE'
r'update for channel {}\(1\) now ACTIVE'
.format(scid),
'to CHANNELD_NORMAL'])
return scid
@@ -646,7 +646,7 @@ class LightningNode(object):
r = self.daemon.wait_for_log('Broadcasting {} .* to resolve '
.format(name))
rawtx = re.search('.* \(([0-9a-fA-F]*)\) ', r).group(1)
rawtx = re.search(r'.* \(([0-9a-fA-F]*)\) ', r).group(1)
txid = self.bitcoin.rpc.decoderawtransaction(rawtx, True)['txid']
wait_for(lambda: txid in self.bitcoin.rpc.getrawmempool())