diff options
| author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-29 13:58:14 +0200 | 
|---|---|---|
| committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-05-29 13:58:14 +0200 | 
| commit | 01fcaa64c3327f45ec2245b038b40e72cc32c141 (patch) | |
| tree | 5aedb3cb7d51830245a26e7c8f6cfea5dfecdeac | |
| parent | e2447406cc89c5a9c3e20f1faf4f5bb9fd2f55b7 (diff) | |
| download | mitmproxy-01fcaa64c3327f45ec2245b038b40e72cc32c141.tar.gz mitmproxy-01fcaa64c3327f45ec2245b038b40e72cc32c141.tar.bz2 mitmproxy-01fcaa64c3327f45ec2245b038b40e72cc32c141.zip | |
fix #1162
| -rw-r--r-- | test/mitmproxy/test_protocol_http2.py | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/test/mitmproxy/test_protocol_http2.py b/test/mitmproxy/test_protocol_http2.py index 07f67b74..4a762014 100644 --- a/test/mitmproxy/test_protocol_http2.py +++ b/test/mitmproxy/test_protocol_http2.py @@ -483,8 +483,11 @@ class TestConnectionLost(_Http2TestBase, _Http2ServerBase):                  h2_conn.receive_data(raw)              except:                  break -            client.wfile.write(h2_conn.data_to_send()) -            client.wfile.flush() +            try: +                client.wfile.write(h2_conn.data_to_send()) +                client.wfile.flush() +            except: +                break          if len(self.master.state.flows) == 1:              assert self.master.state.flows[0].response is None | 
