Skip to content

Commit 63f4ca3

Browse files
SjordByron
authored andcommitted
Add raise_if_error() to tutorial
1 parent 699e223 commit 63f4ca3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: test/test_docs.py

+2-1
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)