Skip to content

Commit e27a1dd

Browse files
committed
Add proper environment test case for remote running interpreter.
1 parent 9377f1c commit e27a1dd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/pythonic-test.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,16 @@ change since process was start."
454454
(python-shell-interpreter "/ssh:test@localhost:/path/to/the/python"))
455455
(should-not (pythonic-proper-environment-p process))))
456456

457+
(ert-deftest test-pythonic-proper-environment-p-running-remote-interpreter ()
458+
"`pythonic-proper-environment-p' is t if running remote interpreter isn't changed."
459+
(unwind-protect
460+
(let* ((python-shell-interpreter "/ssh:test@localhost:/path/to/the/python")
461+
(process (start-pythonic :process "out" :args '("-V"))))
462+
(should (pythonic-proper-environment-p process)))
463+
(kill-buffer "*tramp/ssh test@localhost*")
464+
(setq tramp-current-connection)
465+
(sleep-for 0.5)))
466+
457467
;;; Activate/deactivate environment.
458468

459469
(ert-deftest test-pythonic-activate ()

0 commit comments

Comments
 (0)