[issue18365] Idle: mock Text class and test thereof

Terry J. Reedy report at bugs.python.org
Fri Jul 12 00:27:20 CEST 2013


Terry J. Reedy added the comment:

Whoops, I got that partly wrong in that index returns a 'r.c' string after doing what _decode is supposed to do, which is to decode the input according to the current text. The mock index should just return '%s.%s' % _decode(position). There is still the point that index and _decode now give different coordinates for 'end' and that _decode should be tested by testing mock index, which wraps it, against tk index.

Since tk.Text args can be passed by name, the mock methods should use the same parameter names.

----------

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


More information about the Python-bugs-list mailing list