mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00: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:
parent
c801f81373
commit
9bea616441
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user