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年02月26日 22:47 by brett.cannon, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| test_14135.py | westley.martinez, 2012年03月03日 22:30 | Test for checking locale changes | ||
| issue14135.patch | ishimoto, 2012年07月27日 15:18 | review | ||
| check_locale.diff | brett.cannon, 2013年04月01日 17:46 | review | ||
| Messages (10) | |||
|---|---|---|---|
| msg154414 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2012年02月26日 22:47 | |
Issue #14113 pointed out that test.support doesn't check if tests mucked with the locale after running. |
|||
| msg154856 - (view) | Author: Westley Martínez (westley.martinez) * | Date: 2012年03月03日 22:30 | |
Here's a test that checks for changes to the locale. |
|||
| msg154857 - (view) | Author: Ezio Melotti (ezio.melotti) * (Python committer) | Date: 2012年03月03日 22:34 | |
Thanks for the patch, but I think Brett meant to say that this should be added to Lib/test/regrtest.py:750, among the other resources. |
|||
| msg166573 - (view) | Author: Atsuo Ishimoto (ishimoto) * | Date: 2012年07月27日 15:18 | |
Patch to check if locale was changed. Since I'm not sure where to put tests for test.regrtest, I created new file, test.test_regrtest. |
|||
| msg185742 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年04月01日 16:53 | |
New changeset 4fcd50a6dca7 by Brett Cannon in branch 'default': Issue #14135: Make sure tests don't leave the locale changed for any http://hg.python.org/cpython/rev/4fcd50a6dca7 |
|||
| msg185743 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2013年04月01日 16:54 | |
Sorry it took so wrong to get to this. It simply fell out of my purview. |
|||
| msg185745 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2013年04月01日 17:05 | |
I had to back out this changeset as it totally broke the test suite here: [ 91/372/90] test_defaultdict test test_defaultdict crashed -- Traceback (most recent call last): File "/home/antoine/cpython/default/Lib/test/regrtest.py", line 1287, in runtest_inner with saved_test_environment(test, verbose, quiet) as environment: File "/home/antoine/cpython/default/Lib/test/regrtest.py", line 1251, in __enter__ in self.resource_info()) File "/home/antoine/cpython/default/Lib/test/regrtest.py", line 1250, in <genexpr> self.saved_values = dict((name, get()) for name, get, restore File "/home/antoine/cpython/default/Lib/test/regrtest.py", line 1237, in get_locale return tuple(map(locale.getlocale, self._locale_categories)) File "/home/antoine/cpython/default/Lib/locale.py", line 523, in getlocale raise TypeError('category LC_ALL is not supported') TypeError: category LC_ALL is not supported (etc.) |
|||
| msg185750 - (view) | Author: Brett Cannon (brett.cannon) * (Python committer) | Date: 2013年04月01日 17:46 | |
Can you check the attached patch works for you, Antoine? |
|||
| msg185752 - (view) | Author: Antoine Pitrou (pitrou) * (Python committer) | Date: 2013年04月01日 17:55 | |
It does, thank you. |
|||
| msg185754 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2013年04月01日 18:11 | |
New changeset dfe04eaa3924 by Brett Cannon in branch 'default': Issue #14135: Let's try this again. http://hg.python.org/cpython/rev/dfe04eaa3924 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:27 | admin | set | github: 58343 |
| 2013年04月01日 18:12:10 | brett.cannon | set | status: open -> closed |
| 2013年04月01日 18:11:49 | python-dev | set | messages: + msg185754 |
| 2013年04月01日 17:55:03 | pitrou | set | messages: + msg185752 |
| 2013年04月01日 17:46:45 | brett.cannon | set | files:
+ check_locale.diff messages: + msg185750 |
| 2013年04月01日 17:05:22 | pitrou | set | status: closed -> open versions: + Python 3.4, - Python 3.3 nosy: + pitrou messages: + msg185745 |
| 2013年04月01日 16:54:11 | brett.cannon | set | status: open -> closed resolution: fixed messages: + msg185743 |
| 2013年04月01日 16:53:27 | python-dev | set | nosy:
+ python-dev messages: + msg185742 |
| 2013年03月26日 17:51:00 | brett.cannon | set | assignee: brett.cannon |
| 2012年07月27日 15:18:37 | ishimoto | set | files:
+ issue14135.patch nosy: + ishimoto messages: + msg166573 keywords: + patch |
| 2012年03月03日 22:34:12 | ezio.melotti | set | messages: + msg154857 |
| 2012年03月03日 22:30:43 | westley.martinez | set | files:
+ test_14135.py nosy: + westley.martinez messages: + msg154856 |
| 2012年03月03日 13:50:21 | ezio.melotti | set | nosy:
+ ezio.melotti type: enhancement stage: needs patch |
| 2012年02月29日 04:10:05 | eric.araujo | set | title: check for locale changes in test.support -> check for locale changes in test.regrtest |
| 2012年02月26日 22:49:09 | nadeem.vawda | set | nosy:
+ nadeem.vawda |
| 2012年02月26日 22:47:47 | brett.cannon | create | |