jupyter-runtime-directory: Use an existing directory

Set `default-directory` to one that should exist otherwise tests fail on
Appveyor.
This commit is contained in:
Nathaniel Nicandro 2019-07-08 23:07:14 -05:00
parent 31b551bdc1
commit d5492c54fb
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ As a side effect, the variable `jupyter-runtime-directory' is set
to the local runtime directory if it is nil."
(unless jupyter-runtime-directory
(setq jupyter-runtime-directory
(let ((default-directory user-emacs-directory))
(let ((default-directory (expand-file-name "~" user-emacs-directory)))
(jupyter-command "--runtime-dir"))))
(let ((dir (if (file-remote-p default-directory)
(jupyter-command "--runtime-dir")

View file

@ -697,7 +697,7 @@
(should dir-created)
(setq dir-created nil)
(should (equal jupyter-runtime-directory "foo"))
(let ((default-directory "/ssh:foo:~"))
(let ((default-directory "/ssh:foo:/"))
(should (equal (jupyter-runtime-directory) "/ssh:foo:foo"))
(ert-info ("Variable definition is always local")
(setq jupyter-runtime-directory nil)