Commit 0b09f7c0 authored by Glenn Morris's avatar Glenn Morris
Browse files

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.
parent f4d341af
2013-11-23 Glenn Morris <rgm@gnu.org>
* 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)
......
......@@ -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))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment