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 alex, ned.deily, ronaldoussoren
Date 2013-03-21.05:07:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363842457.8.0.256369847623.issue17496@psf.upfronthosting.co.za>
In-reply-to
Content
The test for the condition was added to solve the problem reported in Issue8716.  The Tk crash for test_ttk_guionly reported there still occurs on a current 10.8 system with the Apple-supplied Cocoa Tk under the same conditions, that is, when running the tests from a process without a window manager connection, like an ssh or buildbot process where the user is not also currently logged in as the main "GUI user".  And the skip test code in question does prevent that crash.  The skip test also works correctly when using a 64-bit framework Python build (./configure --enable-framework), i.e. it does not skip the tests in a normal terminal session.  A side effect of a framework build is that the Python interpreter runs within an OS X app bundle, which gives it magic GUI powers.

But if run from a non-framework (standard unix) build, the tests are skipped with a "cannot run without OS X gui process" skip although stubbing out the check, as your patch does, shows that test_tk and test_ttk_guionly appear to run without error.  So it seems that the skip test is too restrictive but it shouldn't be unilaterally deleted.
History
Date User Action Args
2013-03-21 05:07:37ned.deilysetrecipients: + ned.deily, ronaldoussoren, alex
2013-03-21 05:07:37ned.deilysetmessageid: <1363842457.8.0.256369847623.issue17496@psf.upfronthosting.co.za>
2013-03-21 05:07:37ned.deilylinkissue17496 messages
2013-03-21 05:07:37ned.deilycreate