Skip to content

Commit

Permalink
Skip the second test in test_417_openssl.py too if extract_from_urlli…
Browse files Browse the repository at this point in the history
…b3 is not present

Otherwise the tests will fail because extract_from_urllib3 is None and cannot be called.
  • Loading branch information
felixonmars authored May 20, 2021
1 parent 3a01644 commit 5878dde
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/functional/bugfixes/test_417_openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def test_enable_disable_httpretty_extract():
extract_from_urllib3()
expect(urllib3.util.IS_PYOPENSSL).to.be.false

@skipIf(extract_from_urllib3 is None,
"urllib3.contrib.pyopenssl.extract_from_urllib3 does not exist")
def test_enable_disable_httpretty():
expect(urllib3.util.IS_PYOPENSSL).to.be.false
httpretty.enable()
Expand Down

0 comments on commit 5878dde

Please sign in to comment.