[issue21694] IDLE - Test ParenMatch

Terry J. Reedy report at bugs.python.org
Fri Jun 13 08:35:16 CEST 2014


Terry J. Reedy added the comment:

Attached is the 3.4 file I am ready to commit. Comments on Rietveld. I believe the 3 missed line could be hit by adding a delay to a test, but this seems pretty useless. The test file explicitly tests only two of the methods. Tests of other methods could be written, but since they would mostly be white-box tests that code does exactly what it says it does, this does not seem useful.

What *would* be useful is a patch to ParenMatch.set_timeout_last to keep the highlight on for as long as ^0 is held down, if longer that .5 sec. Right now, it flickers on and off.

The range bug, if such it is, is in 
HyperParser(self.editwin, "insert").get_surrounding_brackets().  I might take a look.

----------
Added file: http://bugs.python.org/file35609/test-parenmatch-21694-34.diff

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


More information about the Python-bugs-list mailing list