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

Commit63f4ca3

Browse files
SjordByron
authored andcommitted
Add raise_if_error() to tutorial
1 parent699e223 commit63f4ca3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎test/test_docs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ def test_references_and_objects(self, rw_dir):
393393
origin.rename('new_origin')
394394
# push and pull behaves similarly to `git push|pull`
395395
origin.pull()
396-
origin.push()
396+
origin.push()# attempt push, ignore errors
397+
origin.push().raise_if_error()# push and raise error if it fails
397398
# assert not empty_repo.delete_remote(origin).exists() # create and delete remotes
398399
# ![25-test_references_and_objects]
399400

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp