This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_logging failure on Windows buildbots
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: neologix, python-dev, vinay.sajip
Priority: normal Keywords:

Created on 2012-01-07 20:06 by neologix, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg150817 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2012-01-07 20:06
Commit 57295c4d81ac879dd2d804190b38b2e91f934acd broke Windows buildbots:

"""
======================================================================
ERROR: test_rotator (test.test_logging.RotatingFileHandlerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_logging.py", line 3543, in tearDown
    os.unlink(fn)
PermissionError: [Error 32] The process cannot access the file because it is being used by another process: 'c:\\users\\db3l\\appdata\\local\\temp\\test_logging-2-9ozjk9.log'

======================================================================
FAIL: test_rotator (test.test_logging.RotatingFileHandlerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_logging.py", line 3631, in test_rotator
    self.assertEqual(data.decode("ascii"), m1.msg + "\n")
AssertionError: '1\r\n' != '1\n'
- 1
?  -
+ 1


======================================================================
FAIL: test_should_not_rollover (test.test_logging.RotatingFileHandlerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_logging.py", line 3536, in setUp
    BaseTest.setUp(self)
  File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows7\build\lib\test\test_logging.py", line 114, in setUp
    raise AssertionError('Unexpected handlers: %s' % hlist)
AssertionError: Unexpected handlers: [<logging.StreamHandler object at 0x0EBAC540>]
"""

See http://python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/4180/steps/test/logs/stdio and http://python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/5780/steps/test/logs/stdio
msg150830 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-01-07 23:26
New changeset 870f8fdfbada by Vinay Sajip in branch 'default':
Closes #13732: now use os.linesep instead of a literal newline.
http://hg.python.org/cpython/rev/870f8fdfbada
History
Date User Action Args
2022-04-11 14:57:25adminsetgithub: 57941
2012-01-07 23:26:24python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg150830

resolution: fixed
stage: needs patch -> resolved
2012-01-07 20:06:26neologixcreate