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

Commit4e701bd

Browse files
committed
Add missing assert keywords
This turns two tuple expression statements--each of an equalitycomparison and message--that were not being checked or otherwiseused, and that were intended to be assertions, into assertions.
1 parentb27a89f commit4e701bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎test/test_submodule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,8 +1031,8 @@ def test_branch_renames(self, rw_dir):
10311031
# This doesn't fail as our own submodule binsha didn't change, and the reset is only triggered if
10321032
# to latest revision is True.
10331033
parent_repo.submodule_update(to_latest_revision=False)
1034-
sm_mod.head.ref.name==sm_pfb.name,"should have been switched to past head"
1035-
sm_mod.commit()==sm_fb.commit,"Head wasn't reset"
1034+
assertsm_mod.head.ref.name==sm_pfb.name,"should have been switched to past head"
1035+
assertsm_mod.commit()==sm_fb.commit,"Head wasn't reset"
10361036

10371037
self.assertRaises(RepositoryDirtyError,parent_repo.submodule_update,to_latest_revision=True)
10381038
parent_repo.submodule_update(to_latest_revision=True,force_reset=True)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp