[New-bugs-announce] [issue18504] IDLE:Improvements- Improving Mock_Text

R. Jayakrishnan report at bugs.python.org
Fri Jul 19 15:00:52 CEST 2013


New submission from R. Jayakrishnan:

Following the Idle: mock Text class and test thereof created #18365
I am trying to improve the _decode function because most of the Idletests needs the mock text and requires some more features to handle indexes.
Started improving the mockText _decode method while writing unit test for AutoExpand.py at #18292. 
For now I want the mock text to decode following indexes: 
line.char, insert, end, +-#c/chars, lineend, linestart, wordstart, wordend

For this I am trying to write regular expressions to extract the parts of index.
The submitted decodeTest.py is a sample script to show how my regular expression starts manipulating the decoding of indexes.

I have attached a checklist of several indexes. So you can easily run them and get an understanding of my approach.

----------
files: decodeTest.py
messages: 193358
nosy: JayKrish
priority: normal
severity: normal
status: open
title: IDLE:Improvements- Improving Mock_Text
Added file: http://bugs.python.org/file30978/decodeTest.py

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


More information about the New-bugs-announce mailing list