Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a58afe commit cd2d538Copy full SHA for cd2d538
test/test_remote.py
@@ -661,7 +661,7 @@ def test_timeout_funcs(self, repo):
661
for function in ["pull", "fetch"]: #"can't get push to reliably timeout
662
f = getattr(repo.remotes.origin, function)
663
assert f is not None # Make sure these functions exist
664
-
665
- with self.assertRaisesRegex(GitCommandError,
666
- "kill_after_timeout=0.01 s"):
+ _ = f() # Make sure the function runs
+ with pytest.raises(GitCommandError,
+ match="kill_after_timeout=0.01 s"):
667
f(kill_after_timeout=0.01)
0 commit comments