mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-01-12 22:48:54 +08:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user