Fix use of skipIf.
This commit is contained in:
@@ -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)
|
||||
|
@@ -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]
|
||||
|
@@ -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'
|
||||
|
Reference in New Issue
Block a user