From 15b9129ec639112e94ea96b6a395ad9b149515d1 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 11 Oct 2009 19:07:03 +0200 Subject: lazymixin system now supports per-attribute baking, it is up to the class whether it bakes more. This also leads to more efficient use of memory as values are only cached and set when required - the baking system does not require an own tracking variable anymore, and values are only to be cached once - then python will natively find the cache without involving any additional overhead. This works by using __getattr__ instead of __get_attribute__ which would always be called --- test/git/test_commit.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'test/git/test_commit.py') diff --git a/test/git/test_commit.py b/test/git/test_commit.py index e92c13dd..341d72e2 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -140,7 +140,6 @@ class TestCommit(object): git.return_value = fixture('diff_i') commit = Commit(self.repo, id='634396b2f541a9f2d58b00be1a07f0c358b999b3') - commit.__bake_it__() diffs = commit.diffs assert_equal(10, len(diffs)) @@ -178,7 +177,6 @@ class TestCommit(object): git.return_value = fixture('diff_mode_only') commit = Commit(self.repo, id='91169e1f5fa4de2eaea3f176461f5dc784796769') - commit.__bake_it__() diffs = commit.diffs # in case of mode-only changes, there is no blob @@ -196,7 +194,6 @@ class TestCommit(object): git.return_value = fixture('diff_tree_numstat_root') commit = Commit(self.repo, id='634396b2f541a9f2d58b00be1a07f0c358b999b3') - commit.__bake_it__() stats = commit.stats keys = stats.files.keys() -- cgit v1.2.1