Skip to content

Commit

Permalink
Get rid of deprecated warning in pytest 3.6 (#99)
Browse files Browse the repository at this point in the history
Fixes: #96

Signed-off-by: Lukas Bednar <[email protected]>
  • Loading branch information
lukas-bednar authored Dec 12, 2018
1 parent 8de9b0f commit d833245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_jira.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d833245

Please sign in to comment.