diff --git a/tests/git-init/git.sh b/tests/git-init/git.sh old mode 100644 new mode 100755 index f6e2f273..a6d7d5cc --- a/tests/git-init/git.sh +++ b/tests/git-init/git.sh @@ -1,2 +1,2 @@ -#!/bin/bash +#!/bin/sh apk add --no-cache git diff --git a/tests/test_git.py b/tests/test_git.py index a5bd1eb7..c06ac925 100644 --- a/tests/test_git.py +++ b/tests/test_git.py @@ -427,7 +427,7 @@ def _gen(scm: Git, s: str, commit_timestamp: Optional[float] = None) -> str: with open(s, mode="w") as f: f.write(s) scm.dulwich.add([s]) - scm.dulwich.repo.do_commit( + scm.dulwich.repo.get_worktree().commit( message=s.encode("utf-8"), commit_timestamp=commit_timestamp ) return scm.get_rev() diff --git a/tests/test_lfs.py b/tests/test_lfs.py index f8d61904..4dc85eac 100644 --- a/tests/test_lfs.py +++ b/tests/test_lfs.py @@ -200,6 +200,7 @@ def mock_object_429( ("X-RateLimit-Reset", lambda: f"{int(time()) + 1}"), ], ) +@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning") def test_rate_limit_retry( storage: LFSStorage, rate_limit_header: str, rate_limit_value: Callable[[], str] ): @@ -232,6 +233,7 @@ def test_rate_limit_retry( ("X-RateLimit-Reset", lambda: f"{int(time()) + 1}"), ], ) +@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning") def test_rate_limit_max_retries_batch( storage: LFSStorage, rate_limit_header: str, rate_limit_value: Callable[[], str] ): @@ -259,6 +261,7 @@ def test_rate_limit_max_retries_batch( ("X-RateLimit-Reset", lambda: f"{int(time()) + 1}"), ], ) +@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning") def test_rate_limit_max_retries_objects( storage: LFSStorage, rate_limit_header: str, rate_limit_value: Callable[[], str] ):