# HG changeset patch # User Mads Kiilerich # Date 2019-12-26 04:49:42 # Node ID 45d71d0a07f2d8766bf1363e74c8f603e75afb66 # Parent db6573f71b89dd585a32c963fdec8abc426aed59 vcs: replace "has_key" with "in" in decorator skip criteria Needed for py3. diff --git a/kallithea/tests/performance/test_vcs.py b/kallithea/tests/performance/test_vcs.py --- a/kallithea/tests/performance/test_vcs.py +++ b/kallithea/tests/performance/test_vcs.py @@ -18,7 +18,7 @@ from kallithea.model.db import Repositor from kallithea.tests.base import * -@pytest.mark.skipif("not os.environ.has_key('TEST_PERFORMANCE')", reason="skipping performance tests, set TEST_PERFORMANCE in environment if desired") +@pytest.mark.skipif("'TEST_PERFORMANCE' not in os.environ", reason="skipping performance tests, set TEST_PERFORMANCE in environment if desired") class TestVCSPerformance(TestController): def graphmod(self, repo):