Skip to content

Commit 1d4805c

Browse files
author
MarcoFalke
committed
Merge #10759: Fix multi_rpc test for hosts that dont default to utf8
bc7d103 Fix multi_rpc test for hosts that dont default to utf8 (Matt Corallo) Tree-SHA512: 7644b1f50d4010a08aed5d1c87ab7326af9c109ac05dfbfc4bb6d5a19ace7997ef9cdd64d4301072f1106225de6d3aacccb17f53043b55ba61f5723c2b65af30
2 parents d3b5870 + bc7d103 commit 1d4805c

File tree

1 file changed

+1
-1
lines changed
  • test/functional/test_framework

1 file changed

+1
-1
lines changed

test/functional/test_framework/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def get_auth_cookie(datadir, n):
236236
user = None
237237
password = None
238238
if os.path.isfile(os.path.join(datadir, "bitcoin.conf")):
239-
with open(os.path.join(datadir, "bitcoin.conf"), 'r') as f:
239+
with open(os.path.join(datadir, "bitcoin.conf"), 'r', encoding='utf8') as f:
240240
for line in f:
241241
if line.startswith("rpcuser="):
242242
assert user is None # Ensure that there is only one rpcuser line

0 commit comments

Comments
 (0)