summaryrefslogtreecommitdiff
path: root/git/test/lib/helper.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-06-07 22:50:00 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-06-07 22:50:00 +0200
commit59879a4e1e2c39e41fa552d8ac0d547c62936897 (patch)
tree5f9d598a73f22c381dd5b0af160fc3a7febcf99f /git/test/lib/helper.py
parente0524096fa9f3add551abbf68ee22904b249d82f (diff)
downloadgitpython-59879a4e1e2c39e41fa552d8ac0d547c62936897.tar.gz
Improved debug assertion to provide proper path on which to run a git daemon
Diffstat (limited to 'git/test/lib/helper.py')
-rw-r--r--git/test/lib/helper.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py
index 76aaaa38..3a60d116 100644
--- a/git/test/lib/helper.py
+++ b/git/test/lib/helper.py
@@ -180,9 +180,11 @@ def with_rw_and_rw_remote_repo(working_tree_ref):
except GitCommandError,e:
print str(e)
if os.name == 'nt':
- raise AssertionError('git-daemon needs to run this test, but windows does not have one. Otherwise, run: git-daemon "%s"'%tempfile.gettempdir())
+ raise AssertionError('git-daemon needs to run this test, but windows does not have one. Otherwise, run: git-daemon "%s"' % os.path.dirname(_mktemp()))
else:
- raise AssertionError('Please start a git-daemon to run this test, execute: git-daemon "%s"'%tempfile.gettempdir())
+ raise AssertionError('Please start a git-daemon to run this test, execute: git-daemon "%s"' % os.path.dirname(_mktemp()))
+ # END make assertion
+ #END catch ls remote error
# adjust working dir
prev_cwd = os.getcwd()