aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_log.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_log.py')
-rw-r--r--test/test_log.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_log.py b/test/test_log.py
index 0d5c6c61..2cac1e7c 100644
--- a/test/test_log.py
+++ b/test/test_log.py
@@ -15,8 +15,9 @@ class DummyIO(StringIO.StringIO):
def test_disconnect():
outf = DummyIO()
rw = DummyIO()
+ l = log.ConnectionLogger(outf, False, rw, rw)
try:
- with log.Log(outf, False, rw, rw) as lg:
+ with l.ctx() as lg:
lg("Test")
except netlib.tcp.NetLibDisconnect:
pass