Skip to content

Commit

Permalink
Make extract_from_urllib3 a function when it's not present
Browse files Browse the repository at this point in the history
Otherwise test_enable_disable_httpretty() will fail because NoneType is
not callable.
  • Loading branch information
felixonmars committed May 20, 2021
1 parent 3a01644 commit 521253b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/bugfixes/test_417_openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
try:
from urllib3.contrib.pyopenssl import extract_from_urllib3
except Exception:
extract_from_urllib3 = None
extract_from_urllib3 = lambda x: x


@skipIf(extract_from_urllib3 is None,
Expand Down

0 comments on commit 521253b

Please sign in to comment.