cpython: cced7981ec4d (original) (raw)
Mercurial > cpython
changeset 86908:cced7981ec4d 2.7
Issue #XXXXX: Fix test_idle so that idlelib test cases are actually run under test.regrtest on 2.7.
Terry Jan Reedy tjreedy@udel.edu | |
---|---|
date | Sun, 03 Nov 2013 23:37:54 -0500 |
parents | 358496e67a89 |
children | 72c3ca3ed22a |
files | Lib/test/test_idle.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-)[+] [-] Lib/test/test_idle.py 4 |
line wrap: on
line diff
--- a/Lib/test/test_idle.py +++ b/Lib/test/test_idle.py @@ -23,6 +23,10 @@ if use_resources and 'gui' in use_resour
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():
+ if name == 'main': # Until unittest supports resources, we emulate regrtest's -ugui # so loaded tests run the same as if textually present here.