diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-06-07 22:50:00 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-06-08 01:36:45 +0200 |
commit | 7bc59ab337516d097938fb2ee01e776c68b328f1 (patch) | |
tree | 541f23bef61bca03657264e8d61486a2d41ac509 | |
parent | 24bc8414a8d3fc74dc643581a60c663718c1deee (diff) | |
download | gitpython-7bc59ab337516d097938fb2ee01e776c68b328f1.tar.gz |
Improved debug assertion to provide proper path on which to run a git daemon
-rw-r--r-- | git/test/lib/helper.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/git/test/lib/helper.py b/git/test/lib/helper.py index 5776f526..d9a92a52 100644 --- a/git/test/lib/helper.py +++ b/git/test/lib/helper.py @@ -165,9 +165,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() |