diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2013-11-04 04:37:54 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2013-11-04 04:37:54 (GMT) |
commit | a1ea8933343d786c6e3af0613b70c1917a94cb84 (patch) | |
tree | 6316a45dbfb72c506eb1cb8b367df24d4ada7bfd | |
parent | 14b38f58c20c541947c4a7ebfecbe74933bd9f85 (diff) | |
download | cpython-a1ea8933343d786c6e3af0613b70c1917a94cb84.zip cpython-a1ea8933343d786c6e3af0613b70c1917a94cb84.tar.gz cpython-a1ea8933343d786c6e3af0613b70c1917a94cb84.tar.bz2 |
Issue #XXXXX: Fix test_idle so that idlelib test cases are actually run
under test.regrtest on 2.7.
-rw-r--r-- | Lib/test/test_idle.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_idle.py b/Lib/test/test_idle.py index 8552e6f..07f45c6 100644 --- a/Lib/test/test_idle.py +++ b/Lib/test/test_idle.py @@ -23,6 +23,10 @@ if use_resources and 'gui' in use_resources: # load_tests() if it finds it. (Unittest.main does the same.) load_tests = idletest.load_tests +# pre-3.3 regrtest does not support the load_tests protocol. use test_main +def test_main(): + support.run_unittest(unittest.TestLoader().loadTestsFromModule(idletest)) + if __name__ == '__main__': # Until unittest supports resources, we emulate regrtest's -ugui # so loaded tests run the same as if textually present here. |