diff options
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
| -rw-r--r-- | test/lisp/progmodes/python-tests.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index b9130da495d..6ddd57c9db2 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el | |||
| @@ -7428,7 +7428,7 @@ class SomeClass: | |||
| 7428 | (or enabled (hs-minor-mode -1))))) | 7428 | (or enabled (hs-minor-mode -1))))) |
| 7429 | 7429 | ||
| 7430 | (ert-deftest python-hideshow-hide-levels-3 () | 7430 | (ert-deftest python-hideshow-hide-levels-3 () |
| 7431 | "Should hide all blocks." | 7431 | "Should hide 2nd level blocks." |
| 7432 | (python-tests-with-temp-buffer | 7432 | (python-tests-with-temp-buffer |
| 7433 | " | 7433 | " |
| 7434 | def f(): | 7434 | def f(): |
| @@ -7447,19 +7447,22 @@ def g(): | |||
| 7447 | (python-tests-visible-string) | 7447 | (python-tests-visible-string) |
| 7448 | " | 7448 | " |
| 7449 | def f(): | 7449 | def f(): |
| 7450 | if 0: | ||
| 7450 | 7451 | ||
| 7451 | def g(): | 7452 | def g(): |
| 7453 | pass | ||
| 7452 | ")))) | 7454 | ")))) |
| 7453 | 7455 | ||
| 7454 | (ert-deftest python-hideshow-hide-levels-4 () | 7456 | (ert-deftest python-hideshow-hide-levels-4 () |
| 7455 | "Should hide 2nd level block." | 7457 | "Should hide 3nd level block." |
| 7456 | (python-tests-with-temp-buffer | 7458 | (python-tests-with-temp-buffer |
| 7457 | " | 7459 | " |
| 7458 | def f(): | 7460 | def f(): |
| 7459 | if 0: | 7461 | if 0: |
| 7460 | l = [i for i in range(5) | 7462 | l = [i for i in range(5) |
| 7461 | if i < 3] | 7463 | if i < 3] |
| 7462 | abc = o.match(1, 2, 3) | 7464 | if 1: |
| 7465 | abc = o.match(1, 2, 3) | ||
| 7463 | 7466 | ||
| 7464 | def g(): | 7467 | def g(): |
| 7465 | pass | 7468 | pass |
| @@ -7472,6 +7475,9 @@ def g(): | |||
| 7472 | " | 7475 | " |
| 7473 | def f(): | 7476 | def f(): |
| 7474 | if 0: | 7477 | if 0: |
| 7478 | l = [i for i in range(5) | ||
| 7479 | if i < 3] | ||
| 7480 | if 1: | ||
| 7475 | 7481 | ||
| 7476 | def g(): | 7482 | def g(): |
| 7477 | pass | 7483 | pass |