A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-December/106793.html below:

[Python-Dev] Using logging in the stdlib and its unit tests

[Python-Dev] Using logging in the stdlib and its unit tests [Python-Dev] Using logging in the stdlib and its unit testsChris Withers chris at simplistix.co.uk
Tue Dec 14 00:41:28 CET 2010
On 07/12/2010 20:26, Vinay Sajip wrote:
> I would suggest that when unit testing, rather than adding StreamHandlers to log
> to stderr, that something like TestHandler and Matcher from this post:
>
> http://plumberjack.blogspot.com/2010/09/unit-testing-and-logging.html

For Python 2, my testfixtures package has had some helpful bits in this 
area for a while now:

http://packages.python.org/testfixtures/logging.html

I find it important to be able to check my code is logging what I think 
it should be logging!

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4