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.
Created on 2012年09月28日 10:36 by mpg, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg171431 - (view) | Author: Manuel Pégourié-Gonnard (mpg) * | Date: 2012年09月28日 10:36 | |
Some tests, namely test_email, test_locale and test_mailbox, normally pass, but fail if both of the following conditions are met: - the local is fr_FR (or probably any other non-C locale) - test_decimal is run before them Steps to repoduce: % LC_ALL=fr_FR ./python -m test test_email test_locale test_mailbox test_decimal [1/4] test_email [2/4] test_locale [3/4] test_mailbox [4/4] test_decimal All 4 tests OK. % LC_ALL=C ./python -m test test_decimal test_email test_locale test_mailbox [1/4] test_decimal [2/4] test_email [3/4] test_locale [4/4] test_mailbox All 4 tests OK. % LC_ALL=fr_FR ./python -m test test_decimal test_email test_locale test_mailbox [1/4] test_decimal [2/4] test_email Warning -- sys.path was modified by test_email test test_email failed -- Traceback (most recent call last): File "/home/mpg/src/cpython/Lib/test/test_email/test_email.py", line 2716, in test_formatdate_usegmt time.strftime('%a, %d %b %Y %H:%M:%S -0000', time.gmtime(now))) AssertionError: 'Fri, 28 Sep 2012 10:05:26 -0000' != 'ven., 28 sept. 2012 10:05:26 -0000' - 2012年9月28日 10:05:26 -0000 ? ^^^ ^ + ven., 28 sept. 2012 10:05:26 -0000 ? ^^^^ ^ ++ [3/4/1] test_locale test test_locale failed -- Traceback (most recent call last): File "/home/mpg/src/cpython/Lib/test/test_locale.py", line 246, in test_percent_escape self.assertEqual(locale.format_string('%f%%', 1.0), '%f%%' % 1.0) AssertionError: '1,000000%' != '1.000000%' - 1,000000% ? ^ + 1.000000% ? ^ [4/4/2] test_mailbox test test_mailbox failed -- Traceback (most recent call last): File "/home/mpg/src/cpython/Lib/test/test_mailbox.py", line 1754, in test_mboxmmdf_to_maildir self.assertEqual(msg.get_date(), 0.0) AssertionError: 1348826768.3964105 != 0.0 1 test OK. 3 tests failed: test_email test_locale test_mailbox |
|||
| msg171475 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年09月28日 14:29 | |
New changeset 3f5fedb17a78 by Stefan Krah in branch 'default': Issue #16080: Use run_with_locale() decorator to reset the locale properly. http://hg.python.org/cpython/rev/3f5fedb17a78 |
|||
| msg171477 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2012年09月28日 14:32 | |
Thanks for the report. -- The locale wasn't properly reset in test_wide_char_separator_decimal_point(). Should be fixed now. |
|||
| msg171480 - (view) | Author: Stefan Krah (skrah) * (Python committer) | Date: 2012年09月28日 14:43 | |
Here we go. The new code fails if ps_AF isn't available. |
|||
| msg171490 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年09月28日 15:25 | |
New changeset f1094697d7dc by Stefan Krah in branch 'default': Closes #16080: The decorator ignores failed attempts to set the required http://hg.python.org/cpython/rev/f1094697d7dc |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:36 | admin | set | github: 60284 |
| 2012年09月28日 15:25:17 | python-dev | set | status: open -> closed resolution: fixed messages: + msg171490 stage: resolved |
| 2012年09月28日 14:43:36 | skrah | set | status: closed -> open resolution: fixed -> (no value) messages: + msg171480 stage: resolved -> (no value) |
| 2012年09月28日 14:32:53 | skrah | set | status: open -> closed type: behavior nosy: + skrah messages: + msg171477 resolution: fixed stage: resolved |
| 2012年09月28日 14:29:12 | python-dev | set | nosy:
+ python-dev messages: + msg171475 |
| 2012年09月28日 10:36:26 | mpg | create | |