Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/test/libregrtest/results.py
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
Eclips4 and sobolevn authored May 15, 2024
commit 4250c498ae6ca8632e98718746cdeba72470d5a6
2 changes: 1 addition & 1 deletion Lib/test/libregrtest/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def write_junit(self, filename: StrPath):

def write_duration(self, filename: StrPath):
self.test_times.sort(reverse=True)
with open(filename, 'w') as f:
with open(filename, 'w', enconding='utf8') as f:
for test_time, test in self.test_times:
f.write(f"{test}: {format_duration(test_time)}\n")

Expand Down