diff options
| author | Terry Jan Reedy <tjreedy@udel.edu> | 2013-06-29 18:22:02 -0400 | 
|---|---|---|
| committer | Terry Jan Reedy <tjreedy@udel.edu> | 2013-06-29 18:22:02 -0400 | 
| commit | e4e530e7e8fa6883e553c898ea063dae82535fd1 (patch) | |
| tree | ff725a96f577998e6b47bcc18d92469e48d98bf0 /Lib/test/test_idle.py | |
| parent | c4565a95244f45fc8868816d62a43764bb678e11 (diff) | |
| download | cpython-git-e4e530e7e8fa6883e553c898ea063dae82535fd1.tar.gz | |
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.py | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_idle.py b/Lib/test/test_idle.py index 1acd67684c..5f16e2b7d1 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)  | 
