Skip to content

Commit

Permalink
Attempt to deal with Python 3.6 having different warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed Aug 22, 2020
1 parent 6264fe4 commit cc53772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,10 @@ def test_patchset_download(datadir, script_runner, archive):
command = f'pyhf patchset download --verbose --force https://www.fail.org/record/resource/1234567 {datadir.join("likelihoods").strpath}'
ret = script_runner.run(*shlex.split(command))
assert not ret.success
# Python 3.6 has different return error than 3.7, 3.8
assert (
"certificate verify failed: Hostname mismatch, certificate is not valid for 'www.fail.org'."
"ssl.CertificateError: hostname 'www.fail.org' doesn't match"
or "certificate verify failed: Hostname mismatch, certificate is not valid for 'www.fail.org'."
in ret.stderr
)

Expand Down

0 comments on commit cc53772

Please sign in to comment.