diff options
| author | Noam Postavsky | 2017-05-20 18:09:24 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-05-20 18:28:23 -0400 |
| commit | ee54d2f4e439b4a211c8fb7541ce22bac65bde8f (patch) | |
| tree | e9e1badd56b7c87e934d41ea1b1f6cfedad5424a /test/lisp/progmodes/python-tests.el | |
| parent | f151eb01418b80d102c767566e93ac332a8bf7c3 (diff) | |
| download | emacs-ee54d2f4e439b4a211c8fb7541ce22bac65bde8f.tar.gz emacs-ee54d2f4e439b4a211c8fb7541ce22bac65bde8f.zip | |
; 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.
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
| -rw-r--r-- | test/lisp/progmodes/python-tests.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index 3b75e81afee..9aaae396a69 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el | |||
| @@ -1317,7 +1317,8 @@ class B: | |||
| 1317 | class C: | 1317 | class C: |
| 1318 | '''docstring''' | 1318 | '''docstring''' |
| 1319 | " | 1319 | " |
| 1320 | (let ((expected-mark-beginning-position | 1320 | (let ((transient-mark-mode t) |
| 1321 | (expected-mark-beginning-position | ||
| 1321 | (progn | 1322 | (progn |
| 1322 | (python-tests-look-at "class A:") | 1323 | (python-tests-look-at "class A:") |
| 1323 | (1- (point)))) | 1324 | (1- (point)))) |
| @@ -1373,7 +1374,8 @@ class B: | |||
| 1373 | class C: | 1374 | class C: |
| 1374 | '''docstring''' | 1375 | '''docstring''' |
| 1375 | " | 1376 | " |
| 1376 | (let ((expected-mark-beginning-position | 1377 | (let ((transient-mark-mode t) |
| 1378 | (expected-mark-beginning-position | ||
| 1377 | (progn | 1379 | (progn |
| 1378 | (python-tests-look-at "def __init__(self):") | 1380 | (python-tests-look-at "def __init__(self):") |
| 1379 | (1- (line-beginning-position)))) | 1381 | (1- (line-beginning-position)))) |