As I mentioned in the other subthread, there is a variation to this
issue that remains unfixed. The following test case, a slightly
modified version of the test case in your commit, has failed (tested on
7e1012765c40):
--8<---------------cut here---------------start------------->8---
(ert-deftest python-indent-after-bare-match ()
(python-tests-with-temp-buffer
"
from re import match
def test_re(string):
if match('^[a-c]+$', string):
print('yes')
else:
"
(python-tests-look-at "else:")
(should (= (python-indent-calculate-indentation) 4))))
--8<---------------cut here---------------end--------------->8---