File tree 3 files changed +3
-13
lines changed
3 files changed +3
-13
lines changed Original file line number Diff line number Diff line change 32
32
from . import utils
33
33
34
34
35
- bstring = b'\xc3 master'
36
-
37
35
@utils .requires_network
38
36
@utils .requires_linux
39
37
def test_nonunicode_branchname (testrepo ):
@@ -43,6 +41,7 @@ def test_nonunicode_branchname(testrepo):
43
41
newrepo = pygit2 .clone_repository (
44
42
path = folderpath , url = 'https://github.com/pygit2/test_branch_notutf.git'
45
43
)
44
+ bstring = b'\xc3 master'
46
45
assert bstring in [
47
46
(ref .split ('/' )[- 1 ]).encode ('utf8' , 'surrogateescape' )
48
47
for ref in newrepo .listall_references ()
Original file line number Diff line number Diff line change @@ -629,7 +629,6 @@ def test_discover_repo(tmp_path):
629
629
assert repo .path == discover_repository (str (subdir ))
630
630
631
631
632
- @utils .requires_fspath
633
632
def test_discover_repo_aspath (tmp_path ):
634
633
repo = init_repository (Path (tmp_path ), False )
635
634
subdir = Path (tmp_path ) / 'test1' / 'test2'
@@ -811,7 +810,6 @@ def _check_worktree(worktree):
811
810
assert testrepo .list_worktrees () == []
812
811
813
812
814
- @utils .requires_fspath
815
813
def test_worktree_aspath (testrepo ):
816
814
worktree_name = 'foo'
817
815
worktree_dir = Path (tempfile .mkdtemp ())
Original file line number Diff line number Diff line change 58
58
requires_proxy = pytest .mark .skipif (not has_proxy , reason = 'Requires proxy at port 8888' )
59
59
60
60
requires_ssh = pytest .mark .skipif (
61
- pygit2 .enums .Feature .SSH not in pygit2 .features ,
62
- reason = 'Requires SSH'
61
+ pygit2 .enums .Feature .SSH not in pygit2 .features , reason = 'Requires SSH'
63
62
)
64
63
65
64
66
65
is_pypy = '__pypy__' in sys .builtin_module_names
67
66
68
- requires_fspath = pytest .mark .xfail (
69
- is_pypy ,
70
- reason = "PyPy doesn't fully support fspath, see https://foss.heptapod.net/pypy/pypy/-/issues/3168" ,
71
- )
72
-
73
67
requires_refcount = pytest .mark .skipif (is_pypy , reason = 'skip refcounts checks in pypy' )
74
68
75
69
requires_linux = pytest .mark .xfail (
76
- sys .platform != 'linux' ,
77
- reason = 'probably a bug in libgit2 for non-linux platforms'
70
+ sys .platform != 'linux' , reason = 'probably a bug in libgit2 for non-linux platforms'
78
71
)
79
72
80
73
You can’t perform that action at this time.
0 commit comments