changeset 8048:45d71d0a07f2

vcs: replace "has_key" with "in" in decorator skip criteria Needed for py3.
author Mads Kiilerich <mads@kiilerich.com>
date Thu, 26 Dec 2019 04:49:42 +0100
parents db6573f71b89
children e2c34c5fe820
files kallithea/tests/performance/test_vcs.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/tests/performance/test_vcs.py	Sun Dec 22 20:28:00 2019 +0100
+++ b/kallithea/tests/performance/test_vcs.py	Thu Dec 26 04:49:42 2019 +0100
@@ -18,7 +18,7 @@
 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):