[issue10652] test___all_ + test_tcl fails (Windows installed binary)
Hirokazu Yamamoto
report at bugs.python.org
Wed Dec 8 16:19:03 CET 2010
Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp> added the comment:
I think this happens because
1. test___all__.py imports tkinter module, and it
imports tkinter/_fix.py
2. _fix.py sets TCL_LIBRARY etc as top level routine
3. regrtest.py resets os.environ after test___all__.py ends.
so TCL_LIBRARY gone.
4. test_tcl.py tries to import tkinter module, but it won't
be loaded twice, so TCL_LIBRARY won't be set.
5. tcl/tk cannot find its library
I think this can be fixed by save & restore sys.modules
before & after each tests, so that tkinter module can be
loaded again.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10652>
_______________________________________
More information about the Python-bugs-list
mailing list