File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def check_error(err, io=False):
4242 # Error message
4343 giterr = C .git_error_last ()
4444 if giterr != ffi .NULL :
45- message = ffi .string (giterr .message ).decode ('utf8' ,errors = 'surrogateescape' )
45+ message = ffi .string (giterr .message ).decode ('utf8' , errors = 'surrogateescape' )
4646 else :
4747 message = f'err { err } (no message provided)'
4848
Original file line number Diff line number Diff line change @@ -37,10 +37,9 @@ def test_nonunicode_branchname(testrepo):
3737 if os .path .exists (folderpath ):
3838 shutil .rmtree (folderpath )
3939 newrepo = pygit2 .clone_repository (
40- path = folderpath ,
41- url = 'https://github.com/pygit2/test_branch_notutf.git'
42- )
40+ path = folderpath , url = 'https://github.com/pygit2/test_branch_notutf.git'
41+ )
4342 assert bstring in [
4443 (ref .split ('/' )[- 1 ]).encode ('utf8' , 'surrogateescape' )
4544 for ref in newrepo .listall_references ()
46- ] # Remote branch among references: 'refs/remotes/origin/\udcc3master'
45+ ] # Remote branch among references: 'refs/remotes/origin/\udcc3master'
You can’t perform that action at this time.
0 commit comments