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: Intermittent failures in test_logging
Type: behavior Stage:
Components: Tests Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: vinay.sajip Nosy List: skrah, vinay.sajip
Priority: normal Keywords: buildbot, patch

Created on 2010-07-19 22:54 by skrah, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue8201-release26-maint.patch skrah, 2010-07-20 09:06
Messages (4)
msg110829 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2010-07-19 22:54
Seemingly random failures in test_logging on 2.6/ubuntu-wide. See:


http://www.python.org/dev/buildbot/builders/AMD64 Ubuntu wide 2.6/builds/777 [fail]
http://www.python.org/dev/buildbot/builders/AMD64 Ubuntu wide 2.6/builds/778 [ok]


======================================================================
ERROR: test_config0_ok (test.test_logging.ConfigFileTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/buildbot/cpython-ucs4-nonascii-€/2.6.pitrou-ubuntu-wide/build/Lib/test/test_logging.py", line 646, in test_config0_ok
    self.apply_config(self.config0)
  File "/home/buildbot/cpython-ucs4-nonascii-€/2.6.pitrou-ubuntu-wide/build/Lib/test/test_logging.py", line 639, in apply_config
    logging.config.fileConfig(fn)
  File "/home/buildbot/cpython-ucs4-nonascii-€/2.6.pitrou-ubuntu-wide/build/Lib/logging/config.py", line 85, in fileConfig
    _install_loggers(cp, handlers, disable_existing_loggers)
  File "/home/buildbot/cpython-ucs4-nonascii-€/2.6.pitrou-ubuntu-wide/build/Lib/logging/config.py", line 217, in _install_loggers
    existing.sort()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 37: ordinal not in range(128)
msg110874 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2010-07-20 08:27
I'm not convinced that this is an error in logging or test_logging. There are no special Unicode keys in the list being sorted AFAIK, and no reason why the sort() should fail. It's more likely to be some problem in the collation code relating to UCS-4 builds.
msg110880 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2010-07-20 09:06
Actually it looks the same as issue 8201. If test_lib2to3 is run before
test_logging, test_logging fails.


Perhaps backporting the patch will help.
msg110963 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2010-07-20 20:19
Whoops, sorry I missed this. Backport checked into release26-maint (r83000).
History
Date User Action Args
2022-04-11 14:57:04adminsetgithub: 53556
2010-07-20 20:19:32vinay.sajipsetstatus: open -> closed
assignee: vinay.sajip
resolution: fixed
messages: + msg110963
2010-07-20 09:08:49skrahsetresolution: not a bug -> (no value)
2010-07-20 09:07:00skrahsetfiles: + issue8201-release26-maint.patch
keywords: + patch
messages: + msg110880
2010-07-20 08:28:41vinay.sajipsetstatus: pending -> open
assignee: vinay.sajip -> (no value)
2010-07-20 08:27:45vinay.sajipsetstatus: open -> pending
resolution: not a bug
messages: + msg110874
2010-07-19 23:04:28pitrousetassignee: vinay.sajip

nosy: + vinay.sajip
2010-07-19 22:54:39skrahcreate