Skip to content

Commit c33d3e1

Browse files
committed
Skip non-unicode branchname and status path tests on macOS
Assisted-by: Kimi Code
1 parent 487817e commit c33d3e1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/test_nonunicode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848

4949
@utils.requires_network
5050
@works_in_linux
51+
@pytest.mark.skipif(sys.platform == 'darwin', reason='non-unicode branch names are not supported on macOS')
5152
def test_nonunicode_branchname(testrepo: Repository, tmp_path: Path) -> None:
5253
folderpath = tmp_path / 'temp_repo_nonutf'
5354
if folderpath.exists():
@@ -63,6 +64,7 @@ def test_nonunicode_branchname(testrepo: Repository, tmp_path: Path) -> None:
6364

6465

6566
@works_in_linux
67+
@pytest.mark.skipif(sys.platform == 'darwin', reason='non-unicode status paths are not supported on macOS')
6668
def test_nonunicode_status_path(tmp_path: Path) -> None:
6769
repo = pygit2.init_repository(str(tmp_path / 'repo'), bare=False)
6870
path_bytes = 'éléphant'.encode('latin1')

0 commit comments

Comments
 (0)