From 0813ec7923d2ff062dcf42f812e53ae48dca0364 Mon Sep 17 00:00:00 2001 From: Matthew Duggan Date: Mon, 18 Aug 2014 21:17:36 +0900 Subject: [PATCH] Fix use of skipIf. --- test/test_commit.py | 2 +- test/test_remote.py | 2 +- test/test_repository.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_commit.py b/test/test_commit.py index 75470ab..00f81cd 100644 --- a/test/test_commit.py +++ b/test/test_commit.py @@ -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) diff --git a/test/test_remote.py b/test/test_remote.py index 97cb72f..d98527b 100644 --- a/test/test_remote.py +++ b/test/test_remote.py @@ -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] diff --git a/test/test_repository.py b/test/test_repository.py index 082876a..c37b130 100644 --- a/test/test_repository.py +++ b/test/test_repository.py @@ -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'