From 6489e678ce097a8f8f91f661fa6836dbc795406f Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 7 Jul 2017 13:28:44 +0200 Subject: [PATCH] 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 --- test/functional/test_framework/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index c5a87cbd5..f6c326ac8 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -219,7 +219,7 @@ def get_auth_cookie(datadir, n): user = None password = None if os.path.isfile(os.path.join(datadir, "dash.conf")): - with open(os.path.join(datadir, "dash.conf"), 'r') as f: + with open(os.path.join(datadir, "dash.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