Add test for installing pymacs with empty PYTHONPATH

This commit is contained in:
Ryan C. Thompson 2012-02-26 02:51:42 -08:00
parent 9ff46cbc51
commit 38aac32c26

20
test/el-get-issue-594.el Normal file
View File

@ -0,0 +1,20 @@
;; https://github.com/dimitri/el-get/issues/586
;;
;; Many recipes use git-emacs github repo
(let ((debug-on-error t)
;; (el-get-byte-compile nil)
(el-get-verbose t)
(el-get-default-process-sync t))
(require 'el-get)
;; Test Pymacs recipe with unset PYTHONPATH
(setenv "PYTHONPATH" nil)
(el-get 'sync 'pymacs)
(el-get-init 'pymacs)
(let ((pp (getenv "PYTHONPATH")))
(assert pp nil
"PYTHONPATH should be non-nil")
(assert (not (string= pp "")) nil
"PYTHONPATH should be non-empty")
(assert (not (string-match-p ":" pp)) nil
"PYTHONPATH should have only one element")))