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 JayKrish
Recipients JayKrish, Todd.Rovito, kbk, ncoghlan, philwebster, roger.serwy, terry.reedy
Date 2013-06-24.18:14:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372097686.35.0.920016418629.issue18189@psf.upfronthosting.co.za>
In-reply-to
Content
I wrapped requires('gui') as submitted in patch2. But this time commands "python -m test test_idle" and with -ugui does not skip delegatortest (it runs successfully to both).

I took Lib/test/test_tk.py as an example.
It calls runtktests.get_tests using support.run_unittest from test module.
Exploring Lib/tkinter/test/runtktests.py the get_tests method begins like


....
def get_tests(text=True, gui=True, packages=None):
    """Yield all the tests in the modules found by get_tests_modules.
    If nogui is True, only tests that do not require a GUI will be
    returned."""
    attrs = []
    if text:
        attrs.append('tests_nogui')
    if gui:
        attrs.append('tests_gui')
....
   ....
also notice the main method calles "test.support.use_resources = ['gui']"
Now the tktests have the line * require('gui') * before the class bigins, for example have a look on test_textensions.py 

So do we have to come up with the same procedure to skip and play with gui and non-gui tests for IDLE ? correct me if I am wrong anywhere.
History
Date User Action Args
2013-06-24 18:14:46JayKrishsetrecipients: + JayKrish, terry.reedy, kbk, ncoghlan, roger.serwy, Todd.Rovito, philwebster
2013-06-24 18:14:46JayKrishsetmessageid: <1372097686.35.0.920016418629.issue18189@psf.upfronthosting.co.za>
2013-06-24 18:14:46JayKrishlinkissue18189 messages
2013-06-24 18:14:46JayKrishcreate