Skip to content

Commit 3eee91b

Browse files
committed
fix test
1 parent 015f330 commit 3eee91b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/test_hook_urllib3.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import json
22
from packaging import version
3-
import pkg_resources
43

54
import pytest
65
import urllib3
@@ -245,8 +244,7 @@ def test_urllib3_get_empty_request_content(httpbin_both):
245244
@pytest.mark.initiator
246245
@pytest.mark.urllib3
247246
@pytest.mark.skipif(
248-
version.parse(pkg_resources.get_distribution("urllib3").version)
249-
< version.parse("2.0.0"),
247+
version.parse(urllib3.__version__) < version.parse("2.0.0"),
250248
reason="only urllib3 v2",
251249
)
252250
def test_urllib3_v2_request(httpbin):

0 commit comments

Comments
 (0)