[issue21703] IDLE: Test UndoDelegator

Saimadhav Heblikar report at bugs.python.org
Wed Jun 11 09:28:47 CEST 2014


Saimadhav Heblikar added the comment:

It was WidgetRedirector which was leaking.
cls.percolator.redir.close() added in tearDownClass fixes the leak.

saimadhav at debian:~/dev/34-cpython$ ./python -m test -R :: -uall test_idle 
[1/1] test_idle
beginning 9 repetitions
123456789
.........
1 test OK.

The attached patch also ensures that when UndoDelegator.py is run, unittest is called with exit=False, so that htest is run.
The htest display is also corrected, and works the same way as without unittest.(with correct buttons etc).

Only problem remaining is when UndoDelegator is run,


can't invoke "event" command:  application has been destroyed
    while executing
"event generate $w <<ThemeChanged>>"
    (procedure "ttk::ThemeChanged" line 6)
    invoked from within
"ttk::ThemeChanged"

----------
Added file: http://bugs.python.org/file35564/test-undodelegator-refleak-fixed.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21703>
_______________________________________


More information about the Python-bugs-list mailing list