From d8332458b732399a9b86a17e2de5204a01b3adb9 Mon Sep 17 00:00:00 2001 From: Lukas Bednar Date: Wed, 12 Dec 2018 15:34:46 +0100 Subject: [PATCH] Get rid of deprecated warning in pytest 3.6 (#99) Fixes: #96 Signed-off-by: Lukas Bednar --- pytest_jira.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytest_jira.py b/pytest_jira.py index 36b79fa..a00fc79 100644 --- a/pytest_jira.py +++ b/pytest_jira.py @@ -80,7 +80,7 @@ def is_issue_resolved(self, issue_id): return not self.is_affected(issue_id) def get_marker(self, item): - if LooseVersion(pytest.__version__) >= LooseVersion("4.0.0"): + if LooseVersion(pytest.__version__) >= LooseVersion("3.6.0"): return item.get_closest_marker("jira") else: return item.keywords.get("jira") @@ -249,7 +249,7 @@ def __init__(self, strategy, docs, pattern): def _get_marks(self, item): marks = [] - if LooseVersion(pytest.__version__) >= LooseVersion("4.0.0"): + if LooseVersion(pytest.__version__) >= LooseVersion("3.6.0"): for mark in item.iter_markers("jira"): marks.append(mark) else: