Skip to content

Commit

Permalink
Turn off colorized logs in test suite
Browse files Browse the repository at this point in the history
Stop the logger from writing to disk in test_hook.hook_fixture

Closes #1058
  • Loading branch information
frostidaho authored and flacjacket committed Apr 30, 2017
1 parent 3e43192 commit 525d166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/conftest.py
Expand Up @@ -234,7 +234,7 @@ def start(self, config_class):

def run_qtile():
try:
init_log(logging.INFO, log_path=None)
init_log(logging.INFO, log_path=None, log_color=False)
q = QtileManager(config_class(), self.display, self.sockfile)
q.loop()
except Exception:
Expand All @@ -259,7 +259,7 @@ def create_manager(self, config_class):
an error and the returned manager should not be started, otherwise this
will likely block the thread.
"""
init_log(logging.INFO, log_path=None)
init_log(logging.INFO, log_path=None, log_color=False)
return QtileManager(config_class(), self.display, self.sockfile)

def terminate(self):
Expand Down
2 changes: 1 addition & 1 deletion test/test_hook.py
Expand Up @@ -50,7 +50,7 @@ class Dummy(object):
pass

dummy = Dummy()
libqtile.log_utils.init_log(logging.CRITICAL)
libqtile.log_utils.init_log(logging.CRITICAL, log_path=None, log_color=False)
libqtile.hook.init(dummy)

yield
Expand Down

0 comments on commit 525d166

Please sign in to comment.