[Python-Dev] Issue 10094 (original) (raw)

Senthil Kumaran orsenthil at gmail.com
Thu Oct 14 19:48:47 CEST 2010


On Thu, Oct 14, 2010 at 07:38:58PM +0200, Antoine Pitrou wrote:

An easy way to reproduce is to have an environment variable named "PROXY":

$ PROXY=toto ./python -m test.regrtest -F testurllib [ 1] testurllib Warning -- os.environ was modified by testurllib test testurllib failed -- Traceback (most recent call last): File "/home/antoine/py3k/debug/Lib/test/testurllib.py", line 121, in setUp for k in os.environ.keys(): File "/home/antoine/py3k/debug/Lib/abcoll.py", line 410, in iter for key in self.mapping: File "/home/antoine/py3k/debug/Lib/os.py", line 441, in iter for key in self.data: RuntimeError: dictionary changed size during iteration There doesn't seem to be anything really mysterious, actually. The exception message says it all :)

That is indeed the case. It a bug to be fixed.

-- Senthil



More information about the Python-Dev mailing list