Message123615
| 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:03 | ocean-city | set | recipients: + ocean-city |
| 2010-12-08 15:19:03 | ocean-city | set | messageid: <1291821543.61.0.375093027133.issue10652@psf.upfronthosting.co.za> |
| 2010-12-08 15:19:02 | ocean-city | link | issue10652 messages |
| 2010-12-08 15:19:02 | ocean-city | create | |