[New-bugs-announce] [issue22751] Fix test___all__ warning about modified environment

Michael Cetrulo report at bugs.python.org
Tue Oct 28 11:27:38 CET 2014


New submission from Michael Cetrulo:

The following warning is being generated when running test case:

  Warning -- locale was modified by test___all__

According to the comment there, importing the rlcompleter module changes (or used to change) the locale so after the import it was being set to 'C'

This patch reads the current locale before importing and resets it to that value afterwards.

----------
components: Tests
files: locale_envchange_patch.diff
keywords: patch
messages: 230136
nosy: Michael.Cetrulo, ezio.melotti
priority: normal
severity: normal
status: open
title: Fix test___all__ warning about modified environment
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file37050/locale_envchange_patch.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22751>
_______________________________________


More information about the New-bugs-announce mailing list