branch: externals/compat
commit 5d5b21569b23d2bb6004c6517435a18c6035c73b
Author: Philip Kaludercic <phil...@posteo.net>
Commit: Philip Kaludercic <phil...@posteo.net>

    Factor out issue with should-error in Emacs 24.3
---
 compat-tests.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/compat-tests.el b/compat-tests.el
index bfa8005..3c1cf3a 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -299,8 +299,11 @@ the compatibility function."
     (compat--should "ccc" "ab" "" "abcabcabc")
     (compat--should "aaaaaa" "a" "aa" "aaa")
     (compat--should "defg" "abc" "defg" "abc")
-    (compat--error (wrong-type-argument wrong-length-argument)
-                   "" "x" "abc")))
+    (when (version<= "24.4" emacs-version)
+      ;; FIXME: Emacs 24.3 do not know of `wrong-length-argument' and
+      ;; therefore fail this test, even if the right symbol is being
+      ;; thrown.
+      (compat--error wrong-length-argument "" "x" "abc"))))
 
 (ert-deftest compat-length= ()
   "Check if `compat--string-length=' was implemented correctly."

Reply via email to