[issue20035] Suppress 'os.environ was modified' warning on Tcl/Tk tests

Serhiy Storchaka report at bugs.python.org
Fri Dec 20 18:27:05 CET 2013


Serhiy Storchaka added the comment:

This looks fragile. What if some test will import tkinter after other test "unfix" the environment? I suggest unload the tkinter._fix module in unfix_environ(). Then next import should implicitly fix the environment. And explicit fix_environ() will be not needed.

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list