From d7866a28d02e11b325726fe1d5f30f2a7e331f46 Mon Sep 17 00:00:00 2001 From: kgriffs Date: Fri, 21 Jun 2013 15:50:27 -0400 Subject: [PATCH] Don't sink stdout when running unit tests This patch removes the stdout fixture since it breaks pdb debugging Change-Id: Id7f94a23c4a105a6754a0287af083306147ec599 --- marconi/tests/util/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/marconi/tests/util/base.py b/marconi/tests/util/base.py index fe8952290..f5c0e387c 100644 --- a/marconi/tests/util/base.py +++ b/marconi/tests/util/base.py @@ -32,11 +32,11 @@ class TestBase(testtools.TestCase): def setUp(self): super(TestBase, self).setUp() + self.useFixture(fixtures.FakeLogger('marconi')) - stdout = self.useFixture(fixtures.StringStream('stdout')).stream - self.useFixture(fixtures.MonkeyPatch('sys.stdout', stdout)) - + # NOTE(kgriffs): Don't monkey-patch stdout since it breaks + # debugging with pdb. stderr = self.useFixture(fixtures.StringStream('stderr')).stream self.useFixture(fixtures.MonkeyPatch('sys.stderr', stderr))