aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2019-01-13 18:50:40 +0000
committerWilfred Hughes <me@wilfred.me.uk>2019-01-13 18:50:40 +0000
commit751caad20387c55ae8dc3f7cfa8f638a4d2d3ad5 (patch)
tree4f0382b3e1ca479c905d56f5779841d0549df776
parentca3292a81732a63eea22b450180acdc9b3a10a90 (diff)
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.
-rw-r--r--test/helpful-unit-test.el2
1 files changed, 2 insertions, 0 deletions
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)))