summaryrefslogtreecommitdiff
path: root/git/test
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-06-13 16:17:57 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-06-13 17:18:42 +0200
commit6660f610a255438c6ce3bc756c57c4b3538d9172 (patch)
treea4949c0ffc5a49e5c0294541d671d2a8fb46eae3 /git/test
parent5a3b7310373351995c6f14d332773646be319a1f (diff)
downloadgitpython-6660f610a255438c6ce3bc756c57c4b3538d9172.tar.gz
fixed submodule test to work on windows
Diffstat (limited to 'git/test')
-rw-r--r--git/test/objects/test_submodule.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/git/test/objects/test_submodule.py b/git/test/objects/test_submodule.py
index a3bc6d9f..e5adedbc 100644
--- a/git/test/objects/test_submodule.py
+++ b/git/test/objects/test_submodule.py
@@ -366,8 +366,9 @@ class TestSubmodule(TestObjectBase):
abspmp = nsm.abspath
assert nsm.move(nmp) is nsm
nmp = nmp[:-1] # cut last /
- assert nsm.path == nmp
- assert rwrepo.submodules[0].path == nmp
+ nmpl = to_native_path_linux(nmp)
+ assert nsm.path == nmpl
+ assert rwrepo.submodules[0].path == nmpl
mpath = 'newsubmodule'
absmpath = join_path_native(rwrepo.working_tree_dir, mpath)