Suggest alternative reason for ERT test duplication error
* lisp/emacs-lisp/ert.el (ert-set-test): Amend error message; maybe the redefinition was caused by a file loaded twice (bug#66782). Suggested by Xiyue Deng.
This commit is contained in:
parent
12d1f33ceb
commit
425d23fbea
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ mode.")
|
|||
(when (and noninteractive (get symbol 'ert--test))
|
||||
;; Make sure duplicated tests are discovered since the older test would
|
||||
;; be ignored silently otherwise.
|
||||
(error "Test `%s' redefined" symbol))
|
||||
(error "Test `%s' redefined (or loaded twice)" symbol))
|
||||
(define-symbol-prop symbol 'ert--test definition)
|
||||
definition)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue