aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/protocols
diff options
context:
space:
mode:
authorThomas Kriechbaumer <Kriechi@users.noreply.github.com>2017-05-24 14:53:45 +0200
committerGitHub <noreply@github.com>2017-05-24 14:53:45 +0200
commit8b31f5c324fac1296d0a89fc42f4e86046d28970 (patch)
tree980a41195850f57dcc34a0e73645e59b88dd261d /test/pathod/protocols
parent1ca98c83aabf7ce6e565aa6cedea61fdf5f193c9 (diff)
parente77f07a36bc2e29552bb541ed71406aa5127d4ac (diff)
downloadmitmproxy-8b31f5c324fac1296d0a89fc42f4e86046d28970.tar.gz
mitmproxy-8b31f5c324fac1296d0a89fc42f4e86046d28970.tar.bz2
mitmproxy-8b31f5c324fac1296d0a89fc42f4e86046d28970.zip
Merge pull request #2350 from Kriechi/improve-tests
fix various leaking fds/sockets
Diffstat (limited to 'test/pathod/protocols')
-rw-r--r--test/pathod/protocols/test_http2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pathod/protocols/test_http2.py b/test/pathod/protocols/test_http2.py
index 1c074197..c16a6d40 100644
--- a/test/pathod/protocols/test_http2.py
+++ b/test/pathod/protocols/test_http2.py
@@ -202,7 +202,7 @@ class TestApplySettings(net_tservers.ServerTestBase):
def handle(self):
# check settings acknowledgement
assert self.rfile.read(9) == codecs.decode('000000040100000000', 'hex_codec')
- self.wfile.write("OK")
+ self.wfile.write(b"OK")
self.wfile.flush()
self.rfile.safe_read(9) # just to keep the connection alive a bit longer