File: openssl_test.py

package info (click to toggle)
python-eventlet 0.40.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,200 kB
  • sloc: python: 25,101; sh: 78; makefile: 31
file content (15 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import tests


def test_import():
    # https://github.com/eventlet/eventlet/issues/238
    # Ensure that it's possible to import eventlet.green.OpenSSL.
    # Most basic test to check Python 3 compatibility.
    try:
        import OpenSSL
    except ImportError:
        raise tests.SkipTest('need pyopenssl')

    import eventlet.green.OpenSSL.SSL
    import eventlet.green.OpenSSL.crypto
    import eventlet.green.OpenSSL.version