diff options
| author | Matt Corallo <[email protected]> | 2017-07-06 22:04:46 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-07-06 22:04:46 -0400 |
| commit | bc7d1032f8bcf7d5fc807ec0df6fe76410732d97 (patch) | |
| tree | 6e48cef35d8b9bb204e474ca6ad587df2374e263 | |
| parent | Merge #10698: Be consistent in calling transactions "replaceable" for Opt-In RBF (diff) | |
| download | discoin-bc7d1032f8bcf7d5fc807ec0df6fe76410732d97.tar.xz discoin-bc7d1032f8bcf7d5fc807ec0df6fe76410732d97.zip | |
Fix multi_rpc test for hosts that dont default to utf8
Otherwise the utf8 written to bitcoin.conf throws an exception when
read from get_auth_cookie
| -rw-r--r-- | test/functional/test_framework/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index 8a2d8de50..acca72aa8 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -236,7 +236,7 @@ def get_auth_cookie(datadir, n): user = None password = None if os.path.isfile(os.path.join(datadir, "bitcoin.conf")): - with open(os.path.join(datadir, "bitcoin.conf"), 'r') as f: + with open(os.path.join(datadir, "bitcoin.conf"), 'r', encoding='utf8') as f: for line in f: if line.startswith("rpcuser="): assert user is None # Ensure that there is only one rpcuser line |