[Python-bugs-list] [ python-Bugs-668787 ] test_logging fails if setlocale() not supported
SourceForge.net
noreply@sourceforge.net
Wed, 15 Jan 2003 15:46:02 -0800
Bugs item #668787, was opened at 2003-01-16 00:08
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=668787&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jack Jansen (jackjansen)
Assigned to: Jack Jansen (jackjansen)
Summary: test_logging fails if setlocale() not supported
Initial Comment:
Test_logging fails if setlocale doesn't work (such as on MacOSX). This strikes me as a bit over the top.
BTW: on MacOSX calling setlocale() results in locale.Error being raised. There is a try/except for ValueError, but I'm not sure whether I can simply add locale.Error to the expected exceptions.
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2003-01-16 00:46
Message:
Logged In: YES
user_id=45365
Ok, fixed in rev 1.3
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-01-16 00:20
Message:
Logged In: YES
user_id=33168
I think you can just add the expected exceptions. So the
clause would be: except (ValueError, locale.Error):
I'm not sure why setting locale was necessary. If the test
runs after the change, feel free to check in the fix. It
seems more robust that way.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=668787&group_id=5470