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

Appearance settings

Commit e93ffe1

Browse filesBrowse files
stsewdByron
authored andcommitted
Fix test
1 parent a77a17f commit e93ffe1
Copy full SHA for e93ffe1

File tree

1 file changed

+2
-3
lines changed
Filter options

1 file changed

+2
-3
lines changed

‎git/test/test_submodule.py

Copy file name to clipboardExpand all lines: git/test/test_submodule.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,8 @@ def test_root_module(self, rwrepo):
480480
with sm.config_writer() as writer:
481481
writer.set_value('path', fp) # change path to something with prefix AFTER url change
482482

483-
# update fails as list_items in such a situations cannot work, as it cannot
484-
# find the entry at the changed path
485-
self.failUnlessRaises(InvalidGitRepositoryError, rm.update, recursive=False)
483+
# update doesn't fail, because list_items ignores the wrong path in such situations.
484+
rm.update(recursive=False)
486485

487486
# move it properly - doesn't work as it its path currently points to an indexentry
488487
# which doesn't exist ( move it to some path, it doesn't matter here )

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.