From 08457a7a6b6ad4f518fad0d5bca094a2b5b38fbe Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 9 Jul 2010 12:18:38 +0200 Subject: 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 --- test/git/test_repo.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/git/test_repo.py') 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) + -- cgit v1.2.1