]> git.eshelyaron.com Git - emacs.git/commit
Expand and improve electric-pair-mode and Python testing (bug#49518)
authorJoão Távora <joaotavora@gmail.com>
Sun, 19 Sep 2021 16:08:41 +0000 (17:08 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 21 Sep 2021 09:54:19 +0000 (10:54 +0100)
commit9ad962e118a17daf073ef5308233f9301755035d
tree0ee7ec3e5e3c144d3ba45f1459fac696fc7190d5
parentf57ef8103139193f48d6c668212e17e476ed1678
Expand and improve electric-pair-mode and Python testing (bug#49518)

In python-tests.el, the triple-quote pairing tests are passing
incorrectly, i.e. the auto-pairing functionality they purport to guard
isn't really working for users trying it interactively.  Added a new
failing test, soon to be fixed.

In electric-tests.el, added tests for Python, too.

* test/lisp/electric-tests.el (define-electric-pair-test): Also run
main tests for python-mode.  (pair-some-quotes-skip-others): Test
another slightly different pairing.

* test/lisp/progmodes/python-tests.el
(python-triple-double-quote-pairing): Rename from
python-triple-quote-pairing.
(python-triple-single-quote-pairing): New test.
test/lisp/electric-tests.el
test/lisp/progmodes/python-tests.el