summaryrefslogtreecommitdiff
path: root/tests/test_ssl.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2019-02-07 09:14:48 -0500
committerHynek Schlawack <hs@ox.cx>2019-02-07 15:14:48 +0100
commit01f90a1b010754c37a332b1b432bca73f7c529a2 (patch)
tree13432cb4a08930e31734184b0503c2feb08aa5a9 /tests/test_ssl.py
parent2d2ea9dd04d00f79a1be7b94ee7f0470ec5dc7a9 (diff)
downloadpyopenssl-git-01f90a1b010754c37a332b1b432bca73f7c529a2.tar.gz
Removed deprecated Type aliases (#814)
* Removed deprecated Type aliases * typo * typo * missed this somehow * Line wrap
Diffstat (limited to 'tests/test_ssl.py')
-rw-r--r--tests/test_ssl.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index bddeaa9..38511a4 100644
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -57,7 +57,7 @@ from OpenSSL.SSL import (
from OpenSSL.SSL import (
Error, SysCallError, WantReadError, WantWriteError, ZeroReturnError)
from OpenSSL.SSL import (
- Context, ContextType, Session, Connection, ConnectionType, SSLeay_version)
+ Context, Session, Connection, SSLeay_version)
from OpenSSL.SSL import _make_requires
from OpenSSL._util import ffi as _ffi, lib as _lib
@@ -508,10 +508,8 @@ class TestContext(object):
def test_type(self):
"""
- `Context` and `ContextType` refer to the same type object and can
- be used to create instances of that type.
+ `Context` can be used to create instances of that type.
"""
- assert Context is ContextType
assert is_consistent_type(Context, 'Context', TLSv1_METHOD)
def test_use_privatekey(self):
@@ -2129,10 +2127,8 @@ class TestConnection(object):
def test_type(self):
"""
- `Connection` and `ConnectionType` refer to the same type object and
- can be used to create instances of that type.
+ `Connection` can be used to create instances of that type.
"""
- assert Connection is ConnectionType
ctx = Context(TLSv1_METHOD)
assert is_consistent_type(Connection, 'Connection', ctx, None)