Message189712
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. |
|
Date |
User |
Action |
Args |
2013-05-20 23:14:00 | terry.reedy | set | recipients:
+ 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:59 | terry.reedy | set | messageid: <1369091639.97.0.367945740139.issue15392@psf.upfronthosting.co.za> |
2013-05-20 23:13:59 | terry.reedy | link | issue15392 messages |
2013-05-20 23:13:59 | terry.reedy | create | |
|