Skip to content

Commit 6a235bc

Browse files
committed
Fix test
1 parent 4bed109 commit 6a235bc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

git/test/test_submodule.py

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy