We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 015f330 commit 3eee91bCopy full SHA for 3eee91b
1 file changed
tests/test_hook_urllib3.py
@@ -1,6 +1,5 @@
1
import json
2
from packaging import version
3
-import pkg_resources
4
5
import pytest
6
import urllib3
@@ -245,8 +244,7 @@ def test_urllib3_get_empty_request_content(httpbin_both):
245
244
@pytest.mark.initiator
246
@pytest.mark.urllib3
247
@pytest.mark.skipif(
248
- version.parse(pkg_resources.get_distribution("urllib3").version)
249
- < version.parse("2.0.0"),
+ version.parse(urllib3.__version__) < version.parse("2.0.0"),
250
reason="only urllib3 v2",
251
)
252
def test_urllib3_v2_request(httpbin):
0 commit comments