Skip to content

Commit

Permalink
Merge pull request #27 from netcriptus/patch-1
Browse files Browse the repository at this point in the history
Fix deprecation warning
  • Loading branch information
markstory authored Oct 13, 2022
2 parents e6e54d2 + 02ac26f commit c871625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_responses.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from packaging.version import Version
from packaging import version

import pytest

import responses as responses_


def get_withoutresponses_marker(item):
if Version(pytest.__version__) >= Version('4.0.0'):
if version.parse(pytest.__version__) >= version.parse('4.0.0'):
return item.get_closest_marker('withoutresponses')
else:
return item.get_marker('withoutresponses')
Expand Down

0 comments on commit c871625

Please sign in to comment.