Issue 1008588: Let test__locale save locale (bug #992078) (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/40752

classification

Title: Let test__locale save locale (bug #992078)
Type: Stage:
Components: Tests Versions: Python 2.4

process

Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: jlgijsbers Nosy List: jlgijsbers, loewis
Priority: normal Keywords: patch

Created on 2004-08-13 09:07 by jlgijsbers, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test__locale-save-oldlocale.diff jlgijsbers,2004-08-13 09:07
Messages (3)
msg46689 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2004-08-13 09:07
test__locale is not resetting the locale after running the tests. This patch saves and then restores the old locale. It is mostly similar to http://python.org/sf/1007539: : I just wrapped the block from 'saw_locale' to 'raise ImportError' in a try: finally: block and used LC_NUMERIC instead of LC_ALL.
msg46690 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-08-14 10:04
Logged In: YES user_id=21627 The patch is fine. Please apply.
msg46691 - (view) Author: Johannes Gijsbers (jlgijsbers) * (Python triager) Date: 2004-08-14 10:58
Logged In: YES user_id=469548 Checked in as rev 1.5 for test__locale__.
History
Date User Action Args
2022-04-11 14:56:06 admin set github: 40752
2004-08-13 09:07:51 jlgijsbers create