[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ert batch-mode error
From: |
Andreas Röhler |
Subject: |
Ert batch-mode error |
Date: |
Mon, 6 Apr 2020 11:11:38 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
Hi all,
running occasionally into a strange error when testing with Emacs Ert
test-suite.
Consider the test below from following source:
https://github.com/emacs-berlin/syntactic-close/blob/master/test/syntactic-close-python-tests.el
(ert-deftest syntactic-close-python-tqs-sq-test-eS7oPB ()
(syntactic-close-test-with-python-buffer
"'''asdf"
(goto-char (point-max))
(syntactic-close)
(should
;; (char-equal (char-before (- (point) 2)) ?')
(char-equal (char-before) ?')
)))
It's intended to test for triple-quoted strings. Also the commented
line should do the test, but fails in batch-mode.
M-x ert RET syntactic-close-python-tqs-sq-test-eS7oPB RET
however succeeds even if this line is uncommented and the following
line commented instead. So the error occurs only in batch-mode.
Any explanation?
Current syntactic-close is provided for example by: git clone
https://github.com/emacs-berlin/syntactic-close.git
Thanks,
Andreas
- Ert batch-mode error,
Andreas Röhler <=