emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r115207: Stop some python tests leaving temp-files b


From: Glenn Morris
Subject: [Emacs-diffs] trunk r115207: Stop some python tests leaving temp-files behind
Date: Sat, 23 Nov 2013 20:46:47 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 115207
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Sat 2013-11-23 12:46:43 -0800
message:
  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.
modified:
  test/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-8588
  test/automated/python-tests.el 
pythontests.el-20130220195218-kqcioz3fssz9hwe1-1
=== modified file 'test/ChangeLog'
--- a/test/ChangeLog    2013-11-23 20:42:38 +0000
+++ b/test/ChangeLog    2013-11-23 20:46:43 +0000
@@ -1,5 +1,9 @@
 2013-11-23  Glenn Morris  <address@hidden>
 
+       * 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)

=== modified file 'test/automated/python-tests.el'
--- a/test/automated/python-tests.el    2013-11-23 20:42:38 +0000
+++ b/test/automated/python-tests.el    2013-11-23 20:46:43 +0000
@@ -1521,7 +1521,11 @@
 (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 @@
 (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 @@
   (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))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]