[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62092: 30.0.50; "case" does not work as dedenter in Python
From: |
kobarity |
Subject: |
bug#62092: 30.0.50; "case" does not work as dedenter in Python |
Date: |
Tue, 15 Aug 2023 22:43:19 +0900 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (Gojō) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.0.50 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
Mattias Engdegård wrote:
>
> The test python-info-dedenter-opening-block-positions-7 added as part of this
> bug in 8f42db010d ends with
>
> + (equal (list (python-tests-look-at "case 2:" -1)
> + (python-tests-look-at "case 1:" -1 t))
> + (python-info-dedenter-opening-block-positions))))
>
> which, as you can see, isn't actually a check; the `equal` result is thrown
> away.
> (Emacs master was just changed to detect this, so there is a byte-compiler
> warning.)
>
> Unfortunately, wrapping the call in `should` fails, so there is more to it.
> Would you please take a look?
Sorry, I meant to use `should'. Another mistake was forgetting to use
RESTORE-POINT argument when calling `python-tests-look-at'. Attached
is the patch to fix this. It also includes the indentation fix for
`python-info-dedenter-opening-block-positions-6'.
0001-Fix-test-in-python-tests.el-added-by-bug-62092.patch
Description: Binary data