]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove test for return value of set-keymap-parent
authorStefan Kangas <stefan@marxist.se>
Mon, 9 Nov 2020 10:35:32 +0000 (11:35 +0100)
committerStefan Kangas <stefan@marxist.se>
Mon, 9 Nov 2020 10:48:56 +0000 (11:48 +0100)
* test/src/keymap-tests.el
(keymap-keymap-set-parent/returns-parent): Remove test for the return
value of set-keymap-parent.  It is not clear that returning the value
is a very good idea.
Problem pointed out by Stefan Monnier <monnier@iro.umontreal.ca>.

test/src/keymap-tests.el

index 8331a41e3f82c68be17fd078d7601b52eafe983c..e3dd8420d7b12f9acf51093b43ddebf1553ab106 100644 (file)
     (set-keymap-parent map help-mode-map)
     (should (equal (keymap-parent map) help-mode-map))))
 
-(ert-deftest keymap-keymap-set-parent/returns-parent ()
-  (let ((map (make-keymap)))
-    (should (equal (set-keymap-parent map help-mode-map) help-mode-map))))
-
 (ert-deftest keymap-copy-keymap/is-equal ()
   (should (equal (copy-keymap help-mode-map) help-mode-map)))