mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
test: Ignore UTF-8 errors in assert_debug_log
read() fails in text mode when the unicode hasn't been fully written yet. Fixes: "wallet_importdescriptors.py: can't decode bytes in position 228861-228863: unexpected end of data" (https://github.com/bitcoin/bitcoin/issues/28030)
This commit is contained in:
parent
fa63326fbc
commit
fa6bb85cd2
1 changed files with 1 additions and 1 deletions
|
@ -440,7 +440,7 @@ class TestNode():
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
found = True
|
found = True
|
||||||
with open(self.debug_log_path, encoding='utf-8') as dl:
|
with open(self.debug_log_path, encoding="utf-8", errors="replace") as dl:
|
||||||
dl.seek(prev_size)
|
dl.seek(prev_size)
|
||||||
log = dl.read()
|
log = dl.read()
|
||||||
print_log = " - " + "\n - ".join(log.splitlines())
|
print_log = " - " + "\n - ".join(log.splitlines())
|
||||||
|
|
Loading…
Add table
Reference in a new issue