[issue21284] IDLE reformat tests fail in presence of non-default FormatParagraph setting

Raymond Hettinger report at bugs.python.org
Thu Apr 17 17:19:39 CEST 2014


New submission from Raymond Hettinger:

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) ... FAIL
test_long_line (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... FAIL
test_multiple_lines (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... FAIL
test_short_line (idlelib.idle_test.test_formatparagraph.FormatEventTest) ... FAIL

The solution is to make these tests setup by:
  1) save the user's default configuration
  2) set the paragraph reformat width to 70
and tear-down by:
  1) restoring the user's default configuration

----------
components: IDLE
keywords: easy
messages: 216695
nosy: rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: IDLE reformat tests fail in presence of non-default FormatParagraph setting
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

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


More information about the Python-bugs-list mailing list