Be stricter about handling connetcts in the pathoc test suite

Attempt to clear a niggling Appveyor exception buggering up our CI.
This commit is contained in:
Aldo Cortesi 2016-06-12 10:39:19 +12:00
parent c801f81373
commit 9bea616441

View File

@ -83,7 +83,13 @@ class TestDaemon(PathocTestDaemon):
def test_ssl_error(self): def test_ssl_error(self):
c = pathoc.Pathoc(("127.0.0.1", self.d.port), ssl=True, fp=None) 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): def test_showssl(self):
assert "certificate chain" not in self.tval( assert "certificate chain" not in self.tval(