From 67e895b6c79bd07042c830ea0a401ae0352e89aa Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 10 Jun 2015 18:30:42 +0200 Subject: [PATCH] Hide SetProcessDpiAwareness Qt warning. This shows up on AppVeyor CI for some reason. See https://bugreports.qt.io/browse/QTBUG-38993 --- qutebrowser/utils/log.py | 2 ++ tox.ini | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/qutebrowser/utils/log.py b/qutebrowser/utils/log.py index 1f1071673..269e1e38d 100644 --- a/qutebrowser/utils/log.py +++ b/qutebrowser/utils/log.py @@ -285,6 +285,8 @@ def qt_message_handler(msg_type, context, msg): 'QXcbWindow: Unhandled client message: "_E_', 'QXcbWindow: Unhandled client message: "_ECORE_', 'QXcbWindow: Unhandled client message: "_GTK_', + # Happens on AppVeyor CI + 'SetProcessDpiAwareness failed:', ) if any(msg.strip().startswith(pattern) for pattern in suppressed_msgs): level = logging.DEBUG diff --git a/tox.ini b/tox.ini index b51497562..603a771a6 100644 --- a/tox.ini +++ b/tox.ini @@ -162,4 +162,6 @@ pep8ignore = resources.py ALL mccabe-complexity = 12 qt_log_level_fail = WARNING -qt_log_ignore = ^SpellCheck: .* +qt_log_ignore = + ^SpellCheck: .* + ^SetProcessDpiAwareness failed: .*