gh-133349: Enable auto-indent for pdb's multi-line mode - #133350
Conversation
|
Hey @iritkatriel , do you think we still have a chance to merge this before beta freeze? |
| last_line = last_line.rstrip('\r\n') | ||
| indent = len(last_line) - len(last_line.lstrip()) | ||
| if last_line.endswith(":"): | ||
| indent += 4 |
There was a problem hiding this comment.
We kind of dictated there, it is consistent with how we auto-fill the space when we hit <tab>. However, we can be smart and search for the history for the last indent. I have the time to do it and it should not be rocket science. Do you want me to do that?
There was a problem hiding this comment.
Let's land this today and if people are complaining, we can treat that as a bug and fix it later :)
|
test_pdb.test_multiline_auto_indent() fails on FreeBSD: Reformatted output (the bytearray): And then test_multiline_indent_completion() hangs. |
|
I think the easy way is just to skip these tests on freebsd. This is a test issue, where freebsd does not consider |
|
I have a FreeBSD machine, I can try some changes if you want. But if I have no clue why \x08 is not treated as backspace. I would also be fine with skipping the test on FreeBSD. |
|
Could you try |
test_multiline_auto_indent() still fails if I replace \x08 with \x7f. |
|
I wrote #133566 to skip the two tests on FreeBSD. |

Uh oh!
There was an error while loading. Please reload this page.