[New-bugs-announce] [issue11903] Incorrect test code in test_logging.py

Stefan Behnel report at bugs.python.org
Thu Apr 21 21:24:11 CEST 2011


New submission from Stefan Behnel <scoder at users.sourceforge.net>:

In test file test_logging.py, around line 2359, list.append() is called with two arguments instead of one. I suppose it is meant to be called with a tuple.

class ModuleLevelMiscTest(BaseTest):
    [...]
    def _test_log(self, method, level=None):
        called = []
        patch(self, logging, 'basicConfig',
              lambda *a, **kw: called.append(a, kw))  # <====

----------
components: Tests
messages: 134239
nosy: scoder
priority: normal
severity: normal
status: open
title: Incorrect test code in test_logging.py
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11903>
_______________________________________


More information about the New-bugs-announce mailing list