diff options
author | sogoagain <imyong0@gmail.com> | 2022-01-12 00:50:32 +0900 |
---|---|---|
committer | sogoagain <imyong0@gmail.com> | 2022-01-12 02:06:15 +0900 |
commit | 9d3e95d77c7d4f228909be696efcd42383cd24e3 (patch) | |
tree | a834c27e8782ec1484061c3386735d331d912f8d /test | |
parent | c561f2f06ed25f08f7776ac41aeb2999ebe79550 (diff) |
[bugfix] prevent UnicodeDecodeError errors when opening log file in feature_init.py
open log file as a raw byte stream in feature_init.py
(fixes #23989)
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/feature_init.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/feature_init.py b/test/functional/feature_init.py index 16815c1afc..4b56b0c26b 100755 --- a/test/functional/feature_init.py +++ b/test/functional/feature_init.py @@ -93,7 +93,7 @@ class InitStressTest(BitcoinTestFramework): additional_lines = random.randint(1, num_total_logs) self.log.debug(f"Starting node and will exit after {additional_lines} lines") node.start(extra_args=['-txindex=1']) - logfile = open(node.debug_log_path, 'r', encoding='utf8') + logfile = open(node.debug_log_path, 'rb') MAX_SECS_TO_WAIT = 10 start = time.time() |