aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_log.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-06-08 14:01:04 +1200
committerAldo Cortesi <aldo@nullcube.com>2015-06-08 14:01:04 +1200
commitaf22814bc34ab9521def8d190e555364b93dc8be (patch)
treee4fd578d5575b875bfbebe7bf4889452e99e89b0 /test/test_log.py
parent7dff8f0dca936a58070f6957ab84ca15aa10076a (diff)
downloadmitmproxy-af22814bc34ab9521def8d190e555364b93dc8be.tar.gz
mitmproxy-af22814bc34ab9521def8d190e555364b93dc8be.tar.bz2
mitmproxy-af22814bc34ab9521def8d190e555364b93dc8be.zip
Revamp error logging somewhat
Diffstat (limited to 'test/test_log.py')
-rw-r--r--test/test_log.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_log.py b/test/test_log.py
index 5473236e..9850654c 100644
--- a/test/test_log.py
+++ b/test/test_log.py
@@ -16,7 +16,7 @@ def test_disconnect():
rw = DummyIO()
try:
with log.Log(outf, False, rw, rw) as lg:
- raise netlib.tcp.NetLibDisconnect()
+ lg("Test")
except netlib.tcp.NetLibDisconnect:
pass
- assert "Disconnected" in outf.getvalue()
+ assert "Test" in outf.getvalue()