From 6cf046206685f3652f61a31366835c00ec3346a5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 27 Jul 2017 11:39:57 +0530 Subject: [PATCH] Suppress log output for failing digest auth in tests --- src/calibre/srv/tests/auth.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/srv/tests/auth.py b/src/calibre/srv/tests/auth.py index d515b89065..a8486829a8 100644 --- a/src/calibre/srv/tests/auth.py +++ b/src/calibre/srv/tests/auth.py @@ -190,6 +190,8 @@ class TestAuth(BaseTest): # Check that server ignores repeated nc values ok_test(conn, digest(**args)) + warnings = [] + server.loop.log.warn = lambda *args, **kwargs: warnings.append(' '.join(args)) # Check stale nonces orig, r.auth_controller.max_age_seconds = r.auth_controller.max_age_seconds, -1 auth = parse_http_dict(test(conn, '/closed', headers={