summaryrefslogtreecommitdiff
path: root/test/testlib
diff options
context:
space:
mode:
authorunknown <byron@.(none)>2010-07-02 19:34:26 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-07-02 19:38:37 +0200
commita4287f65878000b42d11704692f9ea3734014b4c (patch)
tree75a52b5874e74422e977559af4b0fa32b3c429a1 /test/testlib
parentf683c6623f73252645bb2819673046c9d397c567 (diff)
downloadgitpython-a4287f65878000b42d11704692f9ea3734014b4c.tar.gz
win32 compatability adjustments
Diffstat (limited to 'test/testlib')
-rw-r--r--test/testlib/helper.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/testlib/helper.py b/test/testlib/helper.py
index 0bfdfa69..49a01bf7 100644
--- a/test/testlib/helper.py
+++ b/test/testlib/helper.py
@@ -187,6 +187,14 @@ def with_rw_and_rw_remote_repo(working_tree_ref):
d_remote = Remote.create(rw_repo, "daemon_origin", remote_repo_dir)
d_remote.fetch()
remote_repo_url = "git://localhost%s" % remote_repo_dir
+
+ # some oddity: on windows, python 2.5, it for some reason does not realize
+ # that it has the config_writer property, but instead calls __getattr__
+ # which will not yield the expected results. 'pinging' the members
+ # with a dir call creates the config_writer property that we require
+ # ... bugs like these make me wonder wheter python really wants to be used
+ # for production. It doesn't happen on linux though.
+ dir(d_remote)
d_remote.config_writer.set('url', remote_repo_url)
# try to list remotes to diagnoes whether the server is up