File tree Expand file tree Collapse file tree
tests/tools/private/release Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def test_promote_rc_writes_github_output(self):
8383 # Assert
8484 self .assertEqual (result , 0 )
8585 self .assertTrue (os .path .exists (github_output_path ))
86- content = Path (github_output_path ).read_text ()
86+ content = Path (github_output_path ).read_text (encoding = "utf-8" )
8787 self .assertEqual (content , "version=2.0.0\n " )
8888
8989 def test_promote_rc_resolve_issue_success (self ):
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ def run(self) -> int:
158158 self .git .push (args .remote , version )
159159
160160 if github_output := os .environ .get ("GITHUB_OUTPUT" ):
161- with open (github_output , "a" ) as f :
161+ with open (github_output , "a" , encoding = "utf-8" ) as f :
162162 f .write (f"version={ version } \n " )
163163
164164 print (f"Updating tracking issue #{ issue_num } checklist..." )
You can’t perform that action at this time.
0 commit comments