diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-07-09 12:18:38 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-07-09 12:18:38 +0200 |
commit | 08457a7a6b6ad4f518fad0d5bca094a2b5b38fbe (patch) | |
tree | ff129ad199b7e069cb3cef0fcf34353717befa60 /test/git/test_repo.py | |
parent | 3288a244428751208394d8137437878277ceb71f (diff) | |
download | gitpython-08457a7a6b6ad4f518fad0d5bca094a2b5b38fbe.tar.gz |
Added python 2.4 support: Repo will now use the original GitCmdObjectDB in python 2.4, as the pure python implementation cannot work without memory maps
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r-- | test/git/test_repo.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 88d8c8c1..65dce590 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -545,3 +545,10 @@ class TestRepo(TestBase): # cannot handle rev-log for now self.failUnlessRaises(ValueError, rev_parse, "hi@there") + + def test_repo_odbtype(self): + target_type = GitDB + if sys.version_info[1] < 5: + target_type = GitCmdObjectDB + assert isinstance(self.rorepo.odb, target_type) + |