diff options
author | Nate Prewitt <Nate.Prewitt@gmail.com> | 2017-07-03 17:41:53 -0600 |
---|---|---|
committer | Nate Prewitt <Nate.Prewitt@gmail.com> | 2017-07-03 17:41:53 -0600 |
commit | 9b1110afbc990655256943f8f9590ac16fd54c2f (patch) | |
tree | 02b9fb2d25cee987c975dd7a15b297a423ee09a6 | |
parent | f6e07bb27f9fe092dabb1945ef7fd515db7870fe (diff) | |
download | python-requests-fix_help_ssl_check.tar.gz |
test that ssl version check doesn't fail on Python2.6fix_help_ssl_check
-rw-r--r-- | tests/test_help.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_help.py b/tests/test_help.py new file mode 100644 index 00000000..dc830796 --- /dev/null +++ b/tests/test_help.py @@ -0,0 +1,15 @@ +# -*- encoding: utf-8 + +import sys + +import pytest + +from requests.help import info + + +@pytest.mark.skipif(sys.version_info[:2] != (2,6), reason="Only run on Python 2.6") +def test_system_ssl_py26(): + """OPENSSL_VERSION_NUMBER isn't provided in Python 2.6, verify we don't + blow up in this case. + """ + assert info()['system_ssl'] == {'version': ''} |