Skip to content

Commit 7f79d59

Browse files
committed
Improve compatibility with later python versions
Somewhere between python 3.5.3 and python 3.7.4, they added a period to the end of this error message. Using a regexp like I did here will allow this test to pass on either version.
1 parent ff2008d commit 7f79d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/create-withdrawal-data.fails.golden.re

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ Enter fee rate.
2323
Satoshis per vbyte: Traceback (most recent call last):
2424
File "../../glacierscript.py", line <.*> in bitcoin_cli_checkoutput
2525
if retcode != 0: raise subprocess.CalledProcessError(retcode, cmd_list, output=output)
26-
subprocess.CalledProcessError: Command '['bitcoin-cli', '-testnet', '-rpcport=<\d+>', '-datadir=bitcoin-test-data', 'createrawtransaction', '[{"txid": "e0e9bb25fb873c4caccdc8ab743c4350310031f2cc077bb90c3f495458860157", "vout": 1}]', '{"2N93du8YobdgsHyu3qgBvSyhGUT52utMNeA": 0, "myP4xdJNwAW9iMakvCjnozg814ewgn8apx": 0}']' returned non-zero exit status 5
26+
subprocess.CalledProcessError: Command '['bitcoin-cli', '-testnet', '-rpcport=<\d+>', '-datadir=bitcoin-test-data', 'createrawtransaction', '[{"txid": "e0e9bb25fb873c4caccdc8ab743c4350310031f2cc077bb90c3f495458860157", "vout": 1}]', '{"2N93du8YobdgsHyu3qgBvSyhGUT52utMNeA": 0, "myP4xdJNwAW9iMakvCjnozg814ewgn8apx": 0}']' returned non-zero exit status 5<\.?>

0 commit comments

Comments
 (0)