diff options
Diffstat (limited to 'eggs/zc.buildout-1.5.2-py2.6.egg/zc/buildout/testing_bugfix.txt')
-rw-r--r-- | eggs/zc.buildout-1.5.2-py2.6.egg/zc/buildout/testing_bugfix.txt | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/eggs/zc.buildout-1.5.2-py2.6.egg/zc/buildout/testing_bugfix.txt b/eggs/zc.buildout-1.5.2-py2.6.egg/zc/buildout/testing_bugfix.txt deleted file mode 100644 index 3bd13ee..0000000 --- a/eggs/zc.buildout-1.5.2-py2.6.egg/zc/buildout/testing_bugfix.txt +++ /dev/null @@ -1,39 +0,0 @@ -Bug fixes in zc.buildout.testing -================================ - -Logging handler which did not get deleted ------------------------------------------ - -The buildout testing set up runs a buildout which adds a -``logging.StreamHandler`` to the root logger. But tear down did not -remove it. This can disturb other tests of packages reusing -zc.buildout.testing. - -The handers before calling set up are: - - >>> import logging - >>> len(logging.getLogger().handlers) - 1 - >>> logging.getLogger().handlers # doctest: +ELLIPSIS - [<zope...testrunner.logsupport.NullHandler instance at ...>] - -After calling it, a ``logging.StreamHandler`` was added: - - >>> import zc.buildout.testing - >>> import doctest - >>> test = doctest.DocTestParser().get_doctest( - ... '>>> x', {}, 'foo', 'foo.py', 0) - >>> zc.buildout.testing.buildoutSetUp(test) - >>> len(logging.getLogger().handlers) - 2 - >>> logging.getLogger().handlers # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE - [<zope...testrunner.logsupport.NullHandler instance at ...>, - <logging.StreamHandler instance at ...>] - -But tear down removes the new logging handler: - - >>> zc.buildout.testing.buildoutTearDown(test) - >>> len(logging.getLogger().handlers) - 1 - >>> logging.getLogger().handlers # doctest: +ELLIPSIS - [<zope...testrunner.logsupport.NullHandler instance at ...>] |