From 4cea5d2ea85779b185d85cdf91a8b4ac2effd583 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 19 Jan 2012 11:27:26 +0000 Subject: disable logging output while unit tests are run --- subdir/foo.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'subdir') diff --git a/subdir/foo.py b/subdir/foo.py index 711ab4d..51a5dde 100644 --- a/subdir/foo.py +++ b/subdir/foo.py @@ -1,6 +1,9 @@ +import logging + class Foo: def foo(self, a): + logging.error('this should not be displayed when testrun runs') if a: return True elif False: # pragma: no cover -- cgit v1.2.1