aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pathod.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_pathod.py')
-rw-r--r--test/test_pathod.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pathod.py b/test/test_pathod.py
index ed37385d..1da2633f 100644
--- a/test/test_pathod.py
+++ b/test/test_pathod.py
@@ -4,7 +4,7 @@ import OpenSSL
from libpathod import pathod, version
from netlib import tcp, http
-from netlib.exceptions import HttpException
+from netlib.exceptions import HttpException, TlsException
import tutils
@@ -264,7 +264,7 @@ class TestDaemonSSL(CommonTests):
c.wbufsize = 0
c.connect()
c.wfile.write("\0\0\0\0")
- tutils.raises(tcp.NetLibError, c.convert_to_ssl)
+ tutils.raises(TlsException, c.convert_to_ssl)
l = self.d.last_log()
assert l["type"] == "error"
assert "SSL" in l["msg"]