aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/test_pathoc.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/pathod/test_pathoc.py')
-rw-r--r--test/pathod/test_pathoc.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/pathod/test_pathoc.py b/test/pathod/test_pathoc.py
index dc5011c0..77d4721c 100644
--- a/test/pathod/test_pathoc.py
+++ b/test/pathod/test_pathoc.py
@@ -83,7 +83,13 @@ class TestDaemon(PathocTestDaemon):
def test_ssl_error(self):
c = pathoc.Pathoc(("127.0.0.1", self.d.port), ssl=True, fp=None)
- tutils.raises("ssl handshake", c.connect)
+ try:
+ with c.connect():
+ pass
+ except Exception as e:
+ assert "SSL" in str(e)
+ else:
+ raise AssertionError("No exception raised.")
def test_showssl(self):
assert "certificate chain" not in self.tval(