[New-bugs-announce] [issue39663] IDLE: Add additional tests for pyparse

Cheryl Sabella report at bugs.python.org
Mon Feb 17 09:23:16 EST 2020


New submission from Cheryl Sabella <cheryl.sabella at gmail.com>:

Per msg313179, Terry asked to see tests for when the find_good_parse_start() call returns 0 instead of None.  There are two cases when a 0 might be returned:

1.  If the code is on the first line in the editor beginning with one of the matching keywords and ending in ":\n", such as "def spam():\n".
2.  If the code on the first line is entered as "def spam(", then the hyperparser adds the " \n" in its call to set_code and find_good_parse_start returns a 0.

----------
assignee: terry.reedy
components: IDLE
messages: 362149
nosy: cheryl.sabella, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Add additional tests for pyparse
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39663>
_______________________________________


More information about the New-bugs-announce mailing list