mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 23:41:38 -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,6 +272,7 @@ running BODY."
|
|||
(ert-deftest jupyter-channel-subprocess-lock ()
|
||||
(ert-info ("Locking and unlocking a file")
|
||||
(with-temp-buffer
|
||||
(let ((create-lockfiles t))
|
||||
(setq buffer-file-name (expand-file-name "jupyter-lock-test")
|
||||
buffer-file-truename (file-truename buffer-file-name))
|
||||
(should (not (file-exists-p buffer-file-name)))
|
||||
|
@ -280,7 +281,7 @@ running BODY."
|
|||
(should (file-locked-p buffer-file-name))
|
||||
(set-buffer-modified-p nil)
|
||||
(should (not (file-locked-p buffer-file-name)))
|
||||
(should (not (file-exists-p buffer-file-name)))))
|
||||
(should (not (file-exists-p buffer-file-name))))))
|
||||
(ert-info ("`jupyter--ioloop-lock-file'")
|
||||
(let ((client (jupyter-kernel-client)))
|
||||
;; Lock file names are based on session IDs
|
||||
|
|
Loading…
Add table
Reference in a new issue