Fix use of skipIf.

This commit is contained in:
Matthew Duggan
2014-08-18 21:17:36 +09:00
parent bedd9ee315
commit 0813ec7923
3 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ COMMIT_SHA = '5fe808e8953c12735680c257f56600cb0de44b10'
class CommitTest(utils.BareRepoTestCase):
@unittest.skipIf(__pypy__ is not None)
@unittest.skipIf(__pypy__ is not None, "skip refcounts checks in pypy")
def test_commit_refcount(self):
commit = self.repo[COMMIT_SHA]
start = sys.getrefcount(commit)

View File

@@ -169,7 +169,7 @@ class RepositoryTest(utils.RepoTestCase):
self.assertEqual('http://example.com/test.git',
self.repo.remotes[0].url)
@unittest.skipIf(__pypy__ is not None)
@unittest.skipIf(__pypy__ is not None, "skip refcounts checks in pypy")
def test_remote_refcount(self):
start = sys.getrefcount(self.repo)
remote = self.repo.remotes[0]

View File

@@ -156,7 +156,7 @@ class RepositoryTest(utils.BareRepoTestCase):
commit.message)
self.assertRaises(ValueError, self.repo.__getitem__, too_short_prefix)
@unittest.skipIf(__pypy__ is not None)
@unittest.skipIf(__pypy__ is not None, "skip refcounts checks in pypy")
def test_lookup_commit_refcount(self):
start = sys.getrefcount(self.repo)
commit_sha = '5fe808e8953c12735680c257f56600cb0de44b10'