diff options
| author | Fabián Ezequiel Gallina | 2014-06-21 11:14:54 -0300 |
|---|---|---|
| committer | Fabián Ezequiel Gallina | 2014-06-21 11:14:54 -0300 |
| commit | 656f99beebbe122d84754f4f25c4b1b8c53e8941 (patch) | |
| tree | ddf72d5ce2bdbcbc5fe83d0959f4feba08e53ea6 /test | |
| parent | edd112b7f8956e727b21976e9e6a36256d724c24 (diff) | |
| download | emacs-656f99beebbe122d84754f4f25c4b1b8c53e8941.tar.gz emacs-656f99beebbe122d84754f4f25c4b1b8c53e8941.zip | |
Fix completion retrieval parsing.
* progmodes/python.el (python-mode):
(python-util-strip-string): New function.
(python-shell-completion-get-completions): Use it.
* automated/python-tests.el (python-util-strip-string-1): New test.
Fixes: debbugs:17209
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 4 | ||||
| -rw-r--r-- | test/automated/python-tests.el | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 443479b099e..f86084739af 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-06-21 Fabián Ezequiel Gallina <fgallina@gnu.org> | ||
| 2 | |||
| 3 | * automated/python-tests.el (python-util-strip-string-1): New test. | ||
| 4 | |||
| 1 | 2014-05-08 Glenn Morris <rgm@gnu.org> | 5 | 2014-05-08 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * automated/vc-bzr.el (vc-bzr-test-bug9726, vc-bzr-test-bug9781) | 7 | * automated/vc-bzr.el (vc-bzr-test-bug9726, vc-bzr-test-bug9781) |
diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el index de963a670bc..f580e946b8f 100644 --- a/test/automated/python-tests.el +++ b/test/automated/python-tests.el | |||
| @@ -2706,6 +2706,15 @@ def foo(a, b, c): | |||
| 2706 | (equal (symbol-value (car ccons)) (cdr ccons))))) | 2706 | (equal (symbol-value (car ccons)) (cdr ccons))))) |
| 2707 | (kill-buffer buffer))) | 2707 | (kill-buffer buffer))) |
| 2708 | 2708 | ||
| 2709 | (ert-deftest python-util-strip-string-1 () | ||
| 2710 | (should (string= (python-util-strip-string "\t\r\n str") "str")) | ||
| 2711 | (should (string= (python-util-strip-string "str \n\r") "str")) | ||
| 2712 | (should (string= (python-util-strip-string "\t\r\n str \n\r ") "str")) | ||
| 2713 | (should | ||
| 2714 | (string= (python-util-strip-string "\n str \nin \tg \n\r") "str \nin \tg")) | ||
| 2715 | (should (string= (python-util-strip-string "\n \t \n\r ") "")) | ||
| 2716 | (should (string= (python-util-strip-string "") ""))) | ||
| 2717 | |||
| 2709 | 2718 | ||
| 2710 | ;;; Electricity | 2719 | ;;; Electricity |
| 2711 | 2720 | ||