From 7bb9c1bbb99cb267777904f6ced871a9dc9835a0 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Mon, 11 Feb 2013 17:35:12 +0000 Subject: RepoAliasResolver: gimp logging during tests Applications default to logging to console, which causes unwanted output during tests, and I thought this was tidier than allowing tests to override the logger per-call. --- morphlib/repoaliasresolver_tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/morphlib/repoaliasresolver_tests.py b/morphlib/repoaliasresolver_tests.py index 21724a35..8e1827d7 100644 --- a/morphlib/repoaliasresolver_tests.py +++ b/morphlib/repoaliasresolver_tests.py @@ -15,12 +15,14 @@ import morphlib +import logging import unittest class RepoAliasResolverTests(unittest.TestCase): def setUp(self): + logging.disable(logging.critical) self.aliases = [ ('upstream=' 'git://gitorious.org/baserock-morphs/%s#' -- cgit v1.2.1