diff options
| author | Glenn Morris | 2013-11-23 12:46:43 -0800 |
|---|---|---|
| committer | Glenn Morris | 2013-11-23 12:46:43 -0800 |
| commit | 0b09f7c0d338d8c527212a5397ddf52b58c2cbe2 (patch) | |
| tree | 561643a9cb1adc558806f61b19a6c8e7be28190d /test/automated/python-tests.el | |
| parent | f4d341afb66e0418d9a0c41db08096d917568bd8 (diff) | |
| download | emacs-0b09f7c0d338d8c527212a5397ddf52b58c2cbe2.tar.gz emacs-0b09f7c0d338d8c527212a5397ddf52b58c2cbe2.zip | |
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.
Diffstat (limited to 'test/automated/python-tests.el')
| -rw-r--r-- | test/automated/python-tests.el | 12 |
1 files changed, 9 insertions, 3 deletions
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 | |||
| 1521 | (ert-deftest python-shell-make-comint-1 () | 1521 | (ert-deftest python-shell-make-comint-1 () |
| 1522 | "Check comint creation for global shell buffer." | 1522 | "Check comint creation for global shell buffer." |
| 1523 | (skip-unless (executable-find python-tests-shell-interpreter)) | 1523 | (skip-unless (executable-find python-tests-shell-interpreter)) |
| 1524 | (let* ((python-shell-interpreter | 1524 | ;; The interpreter can get killed too quickly to allow it to clean |
| 1525 | ;; up the tempfiles that the default python-shell-setup-codes create, | ||
| 1526 | ;; so it leaves tempfiles behind, which is a minor irritation. | ||
| 1527 | (let* ((python-shell-setup-codes nil) | ||
| 1528 | (python-shell-interpreter | ||
| 1525 | (executable-find python-tests-shell-interpreter)) | 1529 | (executable-find python-tests-shell-interpreter)) |
| 1526 | (proc-name (python-shell-get-process-name nil)) | 1530 | (proc-name (python-shell-get-process-name nil)) |
| 1527 | (shell-buffer | 1531 | (shell-buffer |
| @@ -1541,7 +1545,8 @@ Using `python-shell-interpreter' and | |||
| 1541 | (ert-deftest python-shell-make-comint-2 () | 1545 | (ert-deftest python-shell-make-comint-2 () |
| 1542 | "Check comint creation for internal shell buffer." | 1546 | "Check comint creation for internal shell buffer." |
| 1543 | (skip-unless (executable-find python-tests-shell-interpreter)) | 1547 | (skip-unless (executable-find python-tests-shell-interpreter)) |
| 1544 | (let* ((python-shell-interpreter | 1548 | (let* ((python-shell-setup-codes nil) |
| 1549 | (python-shell-interpreter | ||
| 1545 | (executable-find python-tests-shell-interpreter)) | 1550 | (executable-find python-tests-shell-interpreter)) |
| 1546 | (proc-name (python-shell-internal-get-process-name)) | 1551 | (proc-name (python-shell-internal-get-process-name)) |
| 1547 | (shell-buffer | 1552 | (shell-buffer |
| @@ -1563,7 +1568,8 @@ Using `python-shell-interpreter' and | |||
| 1563 | (skip-unless (executable-find python-tests-shell-interpreter)) | 1568 | (skip-unless (executable-find python-tests-shell-interpreter)) |
| 1564 | (python-tests-with-temp-file | 1569 | (python-tests-with-temp-file |
| 1565 | "" | 1570 | "" |
| 1566 | (let* ((python-shell-interpreter | 1571 | (let* ((python-shell-setup-codes nil) |
| 1572 | (python-shell-interpreter | ||
| 1567 | (executable-find python-tests-shell-interpreter)) | 1573 | (executable-find python-tests-shell-interpreter)) |
| 1568 | (global-proc-name (python-shell-get-process-name nil)) | 1574 | (global-proc-name (python-shell-get-process-name nil)) |
| 1569 | (dedicated-proc-name (python-shell-get-process-name t)) | 1575 | (dedicated-proc-name (python-shell-get-process-name t)) |