]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/automated/advice-tests.el (advice-test-call-interactively): Make sure
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 21 Jul 2014 01:34:03 +0000 (21:34 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 21 Jul 2014 01:34:03 +0000 (21:34 -0400)
the function's definition is fully restored at the end.

test/ChangeLog
test/automated/advice-tests.el

index 6e2f89157e36f18526343e7a6e507aac908a099f..dca2f7e14fe06046f75b4d6dfb5683e1da25402e 100644 (file)
@@ -1,3 +1,8 @@
+2014-07-21  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * automated/advice-tests.el (advice-test-call-interactively): Make sure
+       the function's definition is fully restored at the end.
+
 2014-07-12  Fabián Ezequiel Gallina  <fgallina@gnu.org>
 
        * automated/python-tests.el (python-indent-block-enders-1)
index a87d979f919ab819390d53fa63f1de01c973da0f..bbb4adda9fd665e3dcb03c74f36795556096fc22 100644 (file)
@@ -160,7 +160,8 @@ function being an around advice."
           (advice-add 'call-interactively :before #'ignore)
           (should (equal (sm-test7.4) '(1 . nil)))
           (should (equal (call-interactively 'sm-test7.4) '(1 . t))))
-      (fset 'call-interactively old))))
+      (advice-remove 'call-interactively #'ignore)
+      (should (eq (symbol-function 'call-interactively) old)))))
 
 (ert-deftest advice-test-interactive ()
   "Check handling of interactive spec."