diff options
Diffstat (limited to 'Lib/test/test_idle.py')
-rw-r--r-- | Lib/test/test_idle.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_idle.py b/Lib/test/test_idle.py index 1acd676..5f16e2b 100644 --- a/Lib/test/test_idle.py +++ b/Lib/test/test_idle.py @@ -10,5 +10,10 @@ 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. + from test import support + support.use_resources = ['gui'] # use_resources is initially None import unittest unittest.main(verbosity=2, exit=False) |