Skip to content

Commit d6f389e

Browse files
authored
remove warnings (#454)
1 parent e9c4d6d commit d6f389e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

tests/git-init/git.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
apk add --no-cache git

tests/test_git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def _gen(scm: Git, s: str, commit_timestamp: Optional[float] = None) -> str:
427427
with open(s, mode="w") as f:
428428
f.write(s)
429429
scm.dulwich.add([s])
430-
scm.dulwich.repo.do_commit(
430+
scm.dulwich.repo.get_worktree().commit(
431431
message=s.encode("utf-8"), commit_timestamp=commit_timestamp
432432
)
433433
return scm.get_rev()

tests/test_lfs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def mock_object_429(
200200
("X-RateLimit-Reset", lambda: f"{int(time()) + 1}"),
201201
],
202202
)
203+
@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning")
203204
def test_rate_limit_retry(
204205
storage: LFSStorage, rate_limit_header: str, rate_limit_value: Callable[[], str]
205206
):
@@ -232,6 +233,7 @@ def test_rate_limit_retry(
232233
("X-RateLimit-Reset", lambda: f"{int(time()) + 1}"),
233234
],
234235
)
236+
@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning")
235237
def test_rate_limit_max_retries_batch(
236238
storage: LFSStorage, rate_limit_header: str, rate_limit_value: Callable[[], str]
237239
):
@@ -259,6 +261,7 @@ def test_rate_limit_max_retries_batch(
259261
("X-RateLimit-Reset", lambda: f"{int(time()) + 1}"),
260262
],
261263
)
264+
@pytest.mark.filterwarnings("ignore:enable_cleanup_closed ignored.*:DeprecationWarning")
262265
def test_rate_limit_max_retries_objects(
263266
storage: LFSStorage, rate_limit_header: str, rate_limit_value: Callable[[], str]
264267
):

0 commit comments

Comments
 (0)