1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-23 10:34:07 +00:00

; Set transient-mark-mode to let mark-defun tests pass

The tests fail when transient-mark-mode is not set since 2017-05-12
"Fix Bug#21072 and rework `mark-defun'".
* test/lisp/progmodes/python-tests.el (python-mark-defun-1)
(python-mark-defun-2): Bind 'transient-mark-mode' to t.
This commit is contained in:
Noam Postavsky 2017-05-20 18:09:24 -04:00
parent f151eb0141
commit ee54d2f4e4

View File

@ -1317,7 +1317,8 @@ class B:
class C:
'''docstring'''
"
(let ((expected-mark-beginning-position
(let ((transient-mark-mode t)
(expected-mark-beginning-position
(progn
(python-tests-look-at "class A:")
(1- (point))))
@ -1373,7 +1374,8 @@ class B:
class C:
'''docstring'''
"
(let ((expected-mark-beginning-position
(let ((transient-mark-mode t)
(expected-mark-beginning-position
(progn
(python-tests-look-at "def __init__(self):")
(1- (line-beginning-position))))