This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Guilherme.Simões, JayKrish, Todd.Rovito, Tomoki.Imai, alex.rodas, ezio.melotti, francismb, ncoghlan, ned.deily, r.david.murray, roger.serwy, terry.reedy, tshepang
Date 2013-05-20.23:13:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369091639.97.0.367945740139.issue15392@psf.upfronthosting.co.za>
In-reply-to
Content
Problem solved at least for me with a new patch:

D:\Python\dev\py33\PCbuild> python_d -m test test_idle
[1/1] test_idle
Warning -- os.environ was modified by test_idle
1 test altered the execution environment:
    test_idle

...> python_d -m test
... 
[154/373/2] test_httpservers
[155/373/2] test_idle
[156/373/2] test_imaplib
...

The new patch has two simple changes to test_idle.

1. The traceback David and I saw started in regrtest.runtest_inner:
    the_package = __import__(abstest, globals(), locals(), [])
The rest of the calls were in unittest. This line runs fine in isolation, but it does not matter; regrtest does not want the test to run when it imports the file. Add 'if name ...' to guard main(...).

2. With no test_main present, the key line of runtest_inner is
    tests = unittest.TestLoader().loadTestsFromModule(the_module)
Unittest.main makes the same call to look for, among other things, a load_tests function. Import load_tests from idlelib.idle_test.
History
Date User Action Args
2013-05-20 23:14:00terry.reedysetrecipients: + terry.reedy, ncoghlan, ned.deily, ezio.melotti, roger.serwy, r.david.murray, Todd.Rovito, tshepang, francismb, Guilherme.Simões, JayKrish, Tomoki.Imai, alex.rodas
2013-05-20 23:13:59terry.reedysetmessageid: <1369091639.97.0.367945740139.issue15392@psf.upfronthosting.co.za>
2013-05-20 23:13:59terry.reedylinkissue15392 messages
2013-05-20 23:13:59terry.reedycreate