]> git.eshelyaron.com Git - emacs.git/commitdiff
Stop some python tests leaving temp-files behind
authorGlenn Morris <rgm@gnu.org>
Sat, 23 Nov 2013 20:46:43 +0000 (12:46 -0800)
committerGlenn Morris <rgm@gnu.org>
Sat, 23 Nov 2013 20:46:43 +0000 (12:46 -0800)
* 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.

test/ChangeLog
test/automated/python-tests.el

index c59548252ff70ed0b49cd5a1a1fc23e39e770a49..a0c17f6cfb70b3d05511b0bbcc4382689ae71978 100644 (file)
@@ -1,5 +1,9 @@
 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)
index 3c93c557b8ef6ef75f3794da74d1a7449fdf388a..76a3add6bda1685c6a6a89f2d9f8b441c0f459a6 100644 (file)
@@ -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))