From 751caad20387c55ae8dc3f7cfa8f638a4d2d3ad5 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sun, 13 Jan 2019 18:50:40 +0000 Subject: Ensure helpful--definition-buffer-opened skips when appropriate This test depends on what buffers are currently open in the active Emacs instance, so can fail when running the test suite whilst developing. --- test/helpful-unit-test.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/helpful-unit-test.el b/test/helpful-unit-test.el index 95c3e3c..0ab830f 100644 --- a/test/helpful-unit-test.el +++ b/test/helpful-unit-test.el @@ -330,6 +330,8 @@ variables defined without `defvar'." (require 'python) ;; This test will fail if you already have python.el.gz open in your ;; Emacs instance. + (skip-unless (null (get-buffer "python.el.gz"))) + (-let [(buf pos opened) (helpful--definition 'python-indent-offset nil)] (should (bufferp buf)) (should opened))) -- cgit v1.0