[issue16889] facilitate log output starting at beginning of line

Chris Jerdonek report at bugs.python.org
Tue Jan 8 12:29:15 CET 2013


Chris Jerdonek added the comment:

This can happen with any standard logging configuration when there are writes to sys.stderr that don't end with "\n".  I'm using Mac OS X 10.7.  A minimal script:

import logging, unittest

log = logging.getLogger()

class Test(unittest.TestCase):
    def setUp(self):
        log.info("setting up")
    def test1(self):
        pass
    def test2(self):
        pass

logging.basicConfig(level=logging.INFO)
unittest.main()

Output:

INFO:root:setting up
.INFO:root:setting up
.
----------------------------------------------------------------------
Ran 2 tests in 0.001s

----------

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


More information about the Python-bugs-list mailing list