Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcd2d538

Browse files
sroetByron
authored andcommitted
go for pytest.raises and test that the functions run
1 parent0a58afe commitcd2d538

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎test/test_remote.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ def test_timeout_funcs(self, repo):
661661
forfunctionin ["pull","fetch"]:#"can't get push to reliably timeout
662662
f=getattr(repo.remotes.origin,function)
663663
assertfisnotNone# Make sure these functions exist
664-
665-
withself.assertRaisesRegex(GitCommandError,
666-
"kill_after_timeout=0.01 s"):
664+
_=f()# Make sure the function runs
665+
withpytest.raises(GitCommandError,
666+
match="kill_after_timeout=0.01 s"):
667667
f(kill_after_timeout=0.01)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp