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

@ -13,8 +13,4 @@ idletest = import_module('idlelib.idle_test')
load_tests = idletest.load_tests
if __name__ == '__main__':
# Until unittest supports resources, we emulate regrtest's -ugui
# so loaded tests run the same as if textually present here.
# If any Idle test ever needs another resource, add it to the list.
support.use_resources = ['gui'] # use_resources is initially None
unittest.main(verbosity=2, exit=False)