# editor: Add python indentation tests \(\#30902\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0079c99c2ccfdac54b879e5efeec10344f3bee03)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0079c99c2ccfdac54b879e5efeec10344f3bee03

Requested commit: 0079c99c2ccfdac54b879e5efeec10344f3bee03

Commit: 0079c99c2ccfdac54b879e5efeec10344f3bee03

Tree: b042850aeb9b7d9c2bf03be20d15c86788d58d46

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Add python indentation tests (#30902)

This PR add tests for a recent PR: [language: Fix indent suggestions for
significant indented languages like
Python](https://github.com/zed-industries/zed/pull/29625)

It also covers cases from past related issues so that we don't end up
circling back to them on future fixes.

- [Python incorrect auto-indentation for
except:](https://github.com/zed-industries/zed/issues/10832)
- [Python for/while...else indention overridden by if statement
](https://github.com/zed-industries/zed/issues/30795)
- [Python: erroneous indent on newline when comment ends in
:](https://github.com/zed-industries/zed/issues/25416)
- [Newline in Python file does not indent
](https://github.com/zed-industries/zed/issues/16288)
- [Tab Indentation works incorrectly when there are multiple
cursors](https://github.com/zed-industries/zed/issues/26157)

Release Notes:

- N/A
```

## Parents

- [230eb12f7220aea21733a259b670201bc79c7020](https://git.cafe/gitcafe/zed/commit/230eb12f7220aea21733a259b670201bc79c7020?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0079c99c2ccfdac54b879e5efeec10344f3bee03?format=markdown)
