Skip to content

Commit

Permalink
Fix test_417_openssl.py if pyOpenSSL not available
Browse files Browse the repository at this point in the history
Only one of the tests had the necessary @skipIf.
  • Loading branch information
Vogtinator committed Mar 22, 2024
1 parent f9f0127 commit 2f625b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/bugfixes/nosetests/test_417_openssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,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():
"#417 urllib3.contrib.pyopenssl enable -> disable extract"
expect(urllib3.util.IS_PYOPENSSL).to.be.false
Expand Down

0 comments on commit 2f625b1

Please sign in to comment.