diff options
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() |