Skip to content

Commit 3c4abfa

Browse files
authored
Fix EncodingWarning in libregrtest (GH-31654)
1 parent 81d968b commit 3c4abfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/libregrtest/refleak.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def check_fd_deltas(deltas):
142142
msg = '%s leaked %s %s, sum=%s' % (
143143
test_name, deltas, item_name, sum(deltas))
144144
print(msg, file=sys.stderr, flush=True)
145-
with open(fname, "a") as refrep:
145+
with open(fname, "a", encoding="utf-8") as refrep:
146146
print(msg, file=refrep)
147147
refrep.flush()
148148
failed = True

0 commit comments

Comments
 (0)