homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ocean-city
Recipients ocean-city
Date 2010年12月08日.15:19:02
SpamBayes Score 1.2636542e-08
Marked as misclassified No
Message-id <1291821543.61.0.375093027133.issue10652@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010年12月08日 15:19:03ocean-citysetrecipients: + ocean-city
2010年12月08日 15:19:03ocean-citysetmessageid: <1291821543.61.0.375093027133.issue10652@psf.upfronthosting.co.za>
2010年12月08日 15:19:02ocean-citylinkissue10652 messages
2010年12月08日 15:19:02ocean-citycreate

AltStyle によって変換されたページ (->オリジナル) /