diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2015-06-08 14:01:04 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2015-06-08 14:01:04 +1200 |
commit | af22814bc34ab9521def8d190e555364b93dc8be (patch) | |
tree | e4fd578d5575b875bfbebe7bf4889452e99e89b0 /test/test_log.py | |
parent | 7dff8f0dca936a58070f6957ab84ca15aa10076a (diff) | |
download | mitmproxy-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.py | 4 |
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() |