From: Glenn Morris Date: Sat, 23 Nov 2013 20:46:43 +0000 (-0800) Subject: Stop some python tests leaving temp-files behind X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~724 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0b09f7c0d338d8c527212a5397ddf52b58c2cbe2;p=emacs.git Stop some python tests leaving temp-files behind * test/automated/python-tests.el (python-shell-make-comint-1) (python-shell-make-comint-2, python-shell-get-process-1): Suppress creation of some temp-files. --- diff --git a/test/ChangeLog b/test/ChangeLog index c59548252ff..a0c17f6cfb7 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,5 +1,9 @@ 2013-11-23 Glenn Morris + * automated/python-tests.el (python-shell-make-comint-1) + (python-shell-make-comint-2, python-shell-get-process-1): + Suppress creation of some temp-files. + * automated/python-tests.el (python-shell-parse-command-1) (python-shell-make-comint-1, python-shell-make-comint-2) (python-shell-get-process-1) diff --git a/test/automated/python-tests.el b/test/automated/python-tests.el index 3c93c557b8e..76a3add6bda 100644 --- a/test/automated/python-tests.el +++ b/test/automated/python-tests.el @@ -1521,7 +1521,11 @@ Using `python-shell-interpreter' and (ert-deftest python-shell-make-comint-1 () "Check comint creation for global shell buffer." (skip-unless (executable-find python-tests-shell-interpreter)) - (let* ((python-shell-interpreter + ;; The interpreter can get killed too quickly to allow it to clean + ;; up the tempfiles that the default python-shell-setup-codes create, + ;; so it leaves tempfiles behind, which is a minor irritation. + (let* ((python-shell-setup-codes nil) + (python-shell-interpreter (executable-find python-tests-shell-interpreter)) (proc-name (python-shell-get-process-name nil)) (shell-buffer @@ -1541,7 +1545,8 @@ Using `python-shell-interpreter' and (ert-deftest python-shell-make-comint-2 () "Check comint creation for internal shell buffer." (skip-unless (executable-find python-tests-shell-interpreter)) - (let* ((python-shell-interpreter + (let* ((python-shell-setup-codes nil) + (python-shell-interpreter (executable-find python-tests-shell-interpreter)) (proc-name (python-shell-internal-get-process-name)) (shell-buffer @@ -1563,7 +1568,8 @@ Using `python-shell-interpreter' and (skip-unless (executable-find python-tests-shell-interpreter)) (python-tests-with-temp-file "" - (let* ((python-shell-interpreter + (let* ((python-shell-setup-codes nil) + (python-shell-interpreter (executable-find python-tests-shell-interpreter)) (global-proc-name (python-shell-get-process-name nil)) (dedicated-proc-name (python-shell-get-process-name t))