Преглед на файлове

test-org-table: Fix spurious failure in older Emacsen

* testing/lisp/test-org-table.el (test-org-table/field-formula-outside-table):
  Older Emaacsen throw an 'error instead of 'user-error.  Catch both
  condition names to avoid spurious test failures when that happens.
Achim Gratz преди 10 години
родител
ревизия
82599d37e1
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      testing/lisp/test-org-table.el

+ 3 - 1
testing/lisp/test-org-table.el

@@ -1577,7 +1577,9 @@ is t, then new columns should be added as needed"
 "
 	 1
 	 "#+TBLFM: @1$2=5")
-      ('user-error t)))
+      ('user-error t)
+      ;; Older Emacsen will throw an 'error instead of 'user-error.
+      ('error t)))
 
   (let ((org-table-formula-create-columns t))