Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue21284

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:IDLE reformat tests fail in presence of non-default FormatParagraph setting
Type:behaviorStage:resolved
Components:IDLEVersions:Python 3.4, Python 3.5, Python 2.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: terry.reedyNosy List: python-dev, rhettinger, terry.reedy
Priority:normalKeywords:easy

Created on2014-04-17 15:19 byrhettinger, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Messages (3)
msg216695 -(view)Author: Raymond Hettinger (rhettinger)*(Python committer)Date: 2014-04-17 15:19
When a user sets FormatParagraph to anything other than 70,test_idle.py has 4 failing tests:test_comment_block (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... FAILtest_long_line (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... FAILtest_multiple_lines (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... FAILtest_short_line (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... FAILThe solution is to make these tests setup by:  1) save the user's default configuration  2) set the paragraph reformat width to 70and tear-down by:  1) restoring the user's default configuration
msg216819 -(view)Author: Terry J. Reedy (terry.reedy)*(Python committer)Date: 2014-04-19 00:26
I noticed the same while working on#21139 and posted there a patch, 21139-34-fpe.diff, that adds a limit parameter to .format_paragraph_event. Test could then specify a width for each test without touching the user configuration. Different tests could use different widths. An explicit width is already used for testing the implementaton functions called by this method.
msg216985 -(view)Author: Roundup Robot (python-dev)(Python triager)Date: 2014-04-22 05:12
New changeset4ff2c0a637cf by Terry Jan Reedy in branch '2.7':Issue 21284: Idle: make test_formatparagraph pass even when a user changes thehttp://hg.python.org/cpython/rev/4ff2c0a637cfNew changesetfe067339af80 by Terry Jan Reedy in branch '3.4':Issue 21284: Idle: make test_formatparagraph pass even when a user changes thehttp://hg.python.org/cpython/rev/fe067339af80
History
DateUserActionArgs
2022-04-11 14:58:02adminsetgithub: 65483
2014-04-22 05:13:27terry.reedysetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2014-04-22 05:12:43python-devsetnosy: +python-dev
messages: +msg216985
2014-04-19 00:26:49terry.reedysetnosy: +terry.reedy
messages: +msg216819

assignee:terry.reedy
stage: needs patch -> patch review
2014-04-17 15:19:38rhettingercreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp