Skip to content

Commit

Permalink
reverting to subprocess using str not bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
wschuell committed Nov 27, 2024
1 parent 5c11ece commit 3256813
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_nonunicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def bstring(request):


def test_nonunicode_branchname(testrepo, bstring):
testrepo.branches.local.create(bstring.decode("utf8", errors="surrogateescape"),commit=testrepo.head.target)
cmd = b"git checkout -b " + bstring
subprocess.check_output(cmd.decode('utf8',errors='surrogateescape').split(" "), cwd=testrepo.workdir)
newrepo = pygit2.clone_repository(
testrepo.workdir,
os.path.join(os.path.dirname(testrepo.workdir), "test_nonunicode_repo"),
Expand Down

0 comments on commit 3256813

Please sign in to comment.