mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
Fix EncodingWarning in libregrtest (GH-31654)
This commit is contained in:
parent
81d968b7c3
commit
3c4abfab0d
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ def check_fd_deltas(deltas):
|
|||
msg = '%s leaked %s %s, sum=%s' % (
|
||||
test_name, deltas, item_name, sum(deltas))
|
||||
print(msg, file=sys.stderr, flush=True)
|
||||
with open(fname, "a") as refrep:
|
||||
with open(fname, "a", encoding="utf-8") as refrep:
|
||||
print(msg, file=refrep)
|
||||
refrep.flush()
|
||||
failed = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue