From f8469a283b66455e6e72d6ee6b5f8c1f6b4d0d19 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 19 Apr 2015 15:55:22 +1200 Subject: pathoc: Print SSL info only once per connection --- test/test_pathoc.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/test_pathoc.py') diff --git a/test/test_pathoc.py b/test/test_pathoc.py index ca67ff1f..1a60ae45 100644 --- a/test/test_pathoc.py +++ b/test/test_pathoc.py @@ -53,11 +53,11 @@ class _TestDaemon: ignorecodes=None, ignoretimeout=None ): + s = cStringIO.StringIO() c = pathoc.Pathoc(("127.0.0.1", self.d.port), ssl=self.ssl) - c.connect() + c.connect(showssl=showssl, fp=s) if timeout: c.settimeout(timeout) - s = cStringIO.StringIO() for i in requests: r = language.parse_requests(i)[0] if explain: @@ -67,7 +67,6 @@ class _TestDaemon: showreq = showreq, showresp = showresp, explain = explain, - showssl = showssl, hexdump = hexdump, ignorecodes = ignorecodes, ignoretimeout = ignoretimeout, -- cgit v1.2.3