diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-14 16:13:50 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-14 16:13:50 +1200 |
commit | 4c292b0197d820e9e108aa05b10927107a0503c3 (patch) | |
tree | 80b7b1f086e2542e913f0b5ad8cf9d67c1377174 | |
parent | 59aff68e7ac8f623b6e1b22e31549a91dbc5c0eb (diff) | |
download | mitmproxy-4c292b0197d820e9e108aa05b10927107a0503c3.tar.gz mitmproxy-4c292b0197d820e9e108aa05b10927107a0503c3.tar.bz2 mitmproxy-4c292b0197d820e9e108aa05b10927107a0503c3.zip |
Fix Python3 tests
-rw-r--r-- | test/netlib/test_tcp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/netlib/test_tcp.py b/test/netlib/test_tcp.py index 7121bc98..590bcc01 100644 --- a/test/netlib/test_tcp.py +++ b/test/netlib/test_tcp.py @@ -45,7 +45,7 @@ class HangHandler(tcp.BaseHandler): self.connection.setblocking(0) ret = self.connection.recv(1) # Client connection is dead... - if ret == "": + if ret == "" or ret == b"": return except socket.error: pass |