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 ned.deily
Recipients brett.cannon, ned.deily, r.david.murray, ronaldoussoren, terry.reedy, vstinner
Date 2014-06-30.19:11:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404155474.1.0.589788187956.issue21884@psf.upfronthosting.co.za>
In-reply-to
Content
This is an instance of the problems identified in Issue21882, namely that test___all__ is importing turtledemo modules and some of them have bad side effects. In this case, it's turtledemo.clock which is calling mode() which now unconditionally attempts to create a Tk window during the import. That means Tk is being called without being subject to the checks of test_support.requires('gui'). One of the reasons for having that check is to prevent this kind of crash (as documented in Issue8716) in Tk when Tk is invoked in a process that cannot make a window manager connection, as when running under a buildbot with a user name that is not logged in as the main gui user.  Note also that when Tk crashes, there is nothing the Python code can really do to recover from it.  The solution is as outlined in #21882: don't unconditionally call mode() in the import path.
History
Date User Action Args
2014-06-30 19:11:14ned.deilysetrecipients: + ned.deily, brett.cannon, terry.reedy, ronaldoussoren, vstinner, r.david.murray
2014-06-30 19:11:14ned.deilysetmessageid: <1404155474.1.0.589788187956.issue21884@psf.upfronthosting.co.za>
2014-06-30 19:11:14ned.deilylinkissue21884 messages
2014-06-30 19:11:13ned.deilycreate