summaryrefslogtreecommitdiff
path: root/test/git/test_base.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-14 19:46:24 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-14 19:46:24 +0200
commit832b56394b079c9f6e4c777934447a9e224facfe (patch)
tree5f795bededdc1efe13902f2f77b9b7771d98d597 /test/git/test_base.py
parentc5df44408218003eb49e3b8fc94329c5e8b46c7d (diff)
downloadgitpython-832b56394b079c9f6e4c777934447a9e224facfe.tar.gz
Refs are now truly dynamic - this costs a little bit of (persistent command) work, but assures refs behave as expected
Diffstat (limited to 'test/git/test_base.py')
-rw-r--r--test/git/test_base.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/git/test_base.py b/test/git/test_base.py
index 6e3aad7f..402cdba3 100644
--- a/test/git/test_base.py
+++ b/test/git/test_base.py
@@ -78,9 +78,10 @@ class TestBase(object):
for head in self.repo.heads:
head.name
head.path
- cur_obj = head.object
- del( head.object )
- assert cur_obj == head.object
+ prev_object = head.object
+ cur_object = head.object
+ assert prev_object == cur_object # represent the same git object
+ assert prev_object is not cur_object # but are different instances
# END for each head
def test_get_object_type_by_name(self):