From 7947c5396cf0298106d988a3ea761e05286cc246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Fri, 8 Apr 2011 16:35:20 +0200 Subject: [PATCH] tests: remove unneeded calls to Index.read Since libgit2's commit 3bdc0d4c8c3a5 the index file is automatically read when opened. --- test/test_index.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/test_index.py b/test/test_index.py index b2db4e1..99c025f 100644 --- a/test/test_index.py +++ b/test/test_index.py @@ -61,7 +61,6 @@ class IndexTest(utils.RepoTestCase): def test_add(self): index = self.repo.index - index.read() sha = '0907563af06c7464d62a70cdd135a6ba7d2b41d8' self.assertFalse('bye.txt' in index) @@ -72,14 +71,12 @@ class IndexTest(utils.RepoTestCase): def test_clear(self): index = self.repo.index - index.read() self.assertEqual(len(index), 2) index.clear() self.assertEqual(len(index), 0) def test_write(self): index = self.repo.index - index.read() index.add('bye.txt', 0) index.write() @@ -91,7 +88,6 @@ class IndexTest(utils.RepoTestCase): def test_create_tree(self): sha = 'fd937514cb799514d4b81bb24c5fcfeb6472b245' index = self.repo.index - index.read() tree = index.create_tree() self.assertEqual(sha, tree.sha)