diff options
| author | Fabián Ezequiel Gallina | 2014-12-27 20:09:32 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2014-12-27 20:09:32 -0300 |
| commit | 996ad1b846a0865245df008bdb551093278b3c30 (patch) | |
| tree | 29046a955c31697dc9e54ceeab7e15865764797e /test/automated/python-tests.el | |
| parent | 3d1afd119e3cdb96178dd838ef833414b894d8d8 (diff) | |
| parent | 433af0a06089885f5a57ef0f3e7d6283e8d51bd5 (diff) | |
| download | emacs-996ad1b846a0865245df008bdb551093278b3c30.tar.gz emacs-996ad1b846a0865245df008bdb551093278b3c30.zip | |
Merge from origin/emacs-24
433af0a * lisp/progmodes/python.el (python-shell-buffer-substring): Handle cornercase when region sent starts at point-min.
Diffstat (limited to 'test/automated/python-tests.el')
| -rw-r--r-- | test/automated/python-tests.el | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el index 28332ef2ce7..a6ed6808182 100644 --- a/test/automated/python-tests.el +++ b/test/automated/python-tests.el | |||
| @@ -2638,6 +2638,27 @@ class Foo(models.Model): | |||
| 2638 | pass | 2638 | pass |
| 2639 | ")))) | 2639 | ")))) |
| 2640 | 2640 | ||
| 2641 | (ert-deftest python-shell-buffer-substring-9 () | ||
| 2642 | "Check substring starting from `point-min'." | ||
| 2643 | (python-tests-with-temp-buffer | ||
| 2644 | "# coding: utf-8 | ||
| 2645 | |||
| 2646 | class Foo(models.Model): | ||
| 2647 | pass | ||
| 2648 | |||
| 2649 | class Bar(models.Model): | ||
| 2650 | pass | ||
| 2651 | " | ||
| 2652 | (should (string= (python-shell-buffer-substring | ||
| 2653 | (point-min) | ||
| 2654 | (python-tests-look-at "class Bar(models.Model):")) | ||
| 2655 | "# coding: utf-8 | ||
| 2656 | |||
| 2657 | class Foo(models.Model): | ||
| 2658 | pass | ||
| 2659 | |||
| 2660 | ")))) | ||
| 2661 | |||
| 2641 | 2662 | ||
| 2642 | ;;; Shell completion | 2663 | ;;; Shell completion |
| 2643 | 2664 | ||