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.
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))))
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))))