[issue7596] test_logging sometimes fails

Antoine Pitrou report at bugs.python.org
Wed Dec 30 18:17:43 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

> I can reproduce this on OS X 10.6 with:
> 
> ./python.exe Lib/test/regrtest.py test_lib2to3 test_logging

Same here!
The failure report in verbose mode is:

======================================================================
FAIL: test_filter (test.test_logging.BasicFilterTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/antoine/py3k/__svn__/Lib/test/test_logging.py", line 290, in test_filter
    ('spam.eggs.fish', 'INFO', '3'),
  File "/home/antoine/py3k/__svn__/Lib/test/test_logging.py", line 114, in assert_log_lines
    self.assertEquals(len(actual_lines), len(expected_values))
AssertionError: 4 != 2

======================================================================
FAIL: test_handler_filter (test.test_logging.CustomLevelsAndFiltersTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/antoine/py3k/__svn__/Lib/test/test_logging.py", line 390, in test_handler_filter
    ('Silent', '10'),
  File "/home/antoine/py3k/__svn__/Lib/test/test_logging.py", line 114, in assert_log_lines
    self.assertEquals(len(actual_lines), len(expected_values))
AssertionError: 10 != 5

======================================================================
FAIL: test_specific_filters (test.test_logging.CustomLevelsAndFiltersTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/antoine/py3k/__svn__/Lib/test/test_logging.py", line 416, in test_specific_filters
    self.assert_log_lines(first_lines)
  File "/home/antoine/py3k/__svn__/Lib/test/test_logging.py", line 114, in assert_log_lines
    self.assertEquals(len(actual_lines), len(expected_values))
AssertionError: 10 != 9

----------------------------------------------------------------------

----------

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


More information about the Python-bugs-list mailing list