Message191793
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. |
|
Date |
User |
Action |
Args |
2013-06-24 18:14:46 | JayKrish | set | recipients:
+ JayKrish, terry.reedy, kbk, ncoghlan, roger.serwy, Todd.Rovito, philwebster |
2013-06-24 18:14:46 | JayKrish | set | messageid: <1372097686.35.0.920016418629.issue18189@psf.upfronthosting.co.za> |
2013-06-24 18:14:46 | JayKrish | link | issue18189 messages |
2013-06-24 18:14:46 | JayKrish | create | |
|