Issue #18492: Allow all resources when tests are not run by regrtest.py.

This changeset also includes cleanup allowed by this behavior change.
This commit is contained in:
Zachary Ware 2014-06-02 16:01:29 -05:00
parent 8dd49fe09f
commit 66f2928479
14 changed files with 37 additions and 59 deletions

View file

@ -10,15 +10,9 @@ support.requires('gui')
from tkinter.test import runtktests
def test_main(enable_gui=False):
if enable_gui:
if support.use_resources is None:
support.use_resources = ['gui']
elif 'gui' not in support.use_resources:
support.use_resources.append('gui')
def test_main():
support.run_unittest(
*runtktests.get_tests(text=False, packages=['test_tkinter']))
if __name__ == '__main__':
test_main(enable_gui=True)
test_main()