summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_idle.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2013-06-29 22:22:02 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2013-06-29 22:22:02 (GMT)
commite4e530e7e8fa6883e553c898ea063dae82535fd1 (patch)
treeff725a96f577998e6b47bcc18d92469e48d98bf0 /Lib/test/test_idle.py
parentc4565a95244f45fc8868816d62a43764bb678e11 (diff)
downloadcpython-e4e530e7e8fa6883e553c898ea063dae82535fd1.zip
cpython-e4e530e7e8fa6883e553c898ea063dae82535fd1.tar.gz
cpython-e4e530e7e8fa6883e553c898ea063dae82535fd1.tar.bz2
Issue #18103: Update README.txt and test_idle to describe and run gui tests.
Diffstat (limited to 'Lib/test/test_idle.py')
-rw-r--r--Lib/test/test_idle.py5
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)