diff options
author | unknown <byron@.(none)> | 2010-07-02 19:34:26 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-07-02 19:38:37 +0200 |
commit | a4287f65878000b42d11704692f9ea3734014b4c (patch) | |
tree | 75a52b5874e74422e977559af4b0fa32b3c429a1 /test | |
parent | f683c6623f73252645bb2819673046c9d397c567 (diff) | |
download | gitpython-a4287f65878000b42d11704692f9ea3734014b4c.tar.gz |
win32 compatability adjustments
Diffstat (limited to 'test')
-rw-r--r-- | test/git/test_repo.py | 4 | ||||
-rw-r--r-- | test/testlib/helper.py | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 551140a1..11c7c2e6 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -275,7 +275,7 @@ class TestRepo(TestBase): reader = self.rorepo.config_reader("repository") # single config file assert reader.read_only - def test_config_writer(self): + def _test_config_writer(self): for config_level in self.rorepo.config_level: try: writer = self.rorepo.config_writer(config_level) @@ -294,7 +294,7 @@ class TestRepo(TestBase): tag = self.rorepo.create_tag("new_tag", "HEAD~2") self.rorepo.delete_tag(tag) - + self.rorepo.config_writer() remote = self.rorepo.create_remote("new_remote", "git@server:repo.git") self.rorepo.delete_remote(remote) 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 |