mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-06 07:51:39 -05:00
Ensure lock files are enabled when testing them
This commit is contained in:
parent
394a82a5c2
commit
603ab12444
1 changed files with 10 additions and 9 deletions
|
@ -272,15 +272,16 @@ running BODY."
|
||||||
(ert-deftest jupyter-channel-subprocess-lock ()
|
(ert-deftest jupyter-channel-subprocess-lock ()
|
||||||
(ert-info ("Locking and unlocking a file")
|
(ert-info ("Locking and unlocking a file")
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(setq buffer-file-name (expand-file-name "jupyter-lock-test")
|
(let ((create-lockfiles t))
|
||||||
buffer-file-truename (file-truename buffer-file-name))
|
(setq buffer-file-name (expand-file-name "jupyter-lock-test")
|
||||||
(should (not (file-exists-p buffer-file-name)))
|
buffer-file-truename (file-truename buffer-file-name))
|
||||||
(should (not (file-locked-p buffer-file-name)))
|
(should (not (file-exists-p buffer-file-name)))
|
||||||
(set-buffer-modified-p t)
|
(should (not (file-locked-p buffer-file-name)))
|
||||||
(should (file-locked-p buffer-file-name))
|
(set-buffer-modified-p t)
|
||||||
(set-buffer-modified-p nil)
|
(should (file-locked-p buffer-file-name))
|
||||||
(should (not (file-locked-p buffer-file-name)))
|
(set-buffer-modified-p nil)
|
||||||
(should (not (file-exists-p buffer-file-name)))))
|
(should (not (file-locked-p buffer-file-name)))
|
||||||
|
(should (not (file-exists-p buffer-file-name))))))
|
||||||
(ert-info ("`jupyter--ioloop-lock-file'")
|
(ert-info ("`jupyter--ioloop-lock-file'")
|
||||||
(let ((client (jupyter-kernel-client)))
|
(let ((client (jupyter-kernel-client)))
|
||||||
;; Lock file names are based on session IDs
|
;; Lock file names are based on session IDs
|
||||||
|
|
Loading…
Add table
Reference in a new issue