]> code.delx.au - gnu-emacs/blobdiff - test/lisp/vc/vc-bzr-tests.el
Remove ‘ert-with-function-mocked’ macro in favour of ‘cl-letf’ macro
[gnu-emacs] / test / lisp / vc / vc-bzr-tests.el
index 98d176ca1ee637ad8126dc7001494f019e8a8933..f27e6588cf2a6194a999cddac0cd628ab9a76161 100644 (file)
@@ -25,7 +25,6 @@
 ;;; Code:
 
 (require 'ert)
-(require 'ert-x)
 (require 'vc-bzr)
 (require 'vc-dir)
 
           (while (vc-dir-busy)
             (sit-for 0.1))
           (vc-dir-mark-all-files t)
-          (ert-with-function-mocked y-or-n-p (lambda (_) t)
+          (cl-letf (((symbol-function 'y-or-n-p) (lambda (_) t)))
             (vc-next-action nil))
           (should (get-buffer "*vc-log*")))
       (delete-directory homedir t))))