spike
unread,Aug 17, 2021, 3:33:18 AM8/17/21Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to leo-e...@googlegroups.com
patch 73eaf41fff7c150012448f8113ca45623bb5aa23
"Use textwrap.dedent instead of g.adjustTripleString everywhere"
in v6.4b2 breaks "newline-and-indent" unit test.
The problem is that textwrap.dedent clears empty lines and the test
needs to insert an indented blank line in order to work. Attached patch
fixes the problem by disabling textwrap.dedent for the affected test.
Error messages:
Test case for newline-and-indent ... mismatch in body
expected:
[
'first line\n',
'line 1\n',
'\n',
' line a\n',
' line b\n',
'line c\n',
'last line\n'
]
got:
[
'first line\n',
'line 1\n',
' \n',
' line a\n',
' line b\n',
'line c\n',
'last line\n'
]
parent_p.b ''
FAIL
Traceback (most recent call last):
File "leo/unittests/commands/test_editCommands.py", line 2498, in
test_newline_and_indent
self.run_test(
File "leo/unittests/commands/test_editCommands.py", line 53, in run_test
assert False
AssertionError