el-get/test/el-get-issue-594.el
Ryan C. Thompson 1fb104010c Use setq instead of let in tests
This makes it easier to run tests interactively and inspect the
results afterward, because the variables such as "el-get-sources" that
were set for the tests are still bound to the values they had during
the test.
2012-03-18 12:33:04 -07:00

20 lines
577 B
EmacsLisp

;; https://github.com/dimitri/el-get/issues/594
;;
;; handle empty/missing PYTHONPATH correctly in pymacs
(setq debug-on-error t
el-get-verbose t
el-get-default-process-sync t)
;; 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"))