unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Ert batch-mode error
@ 2020-04-06  9:11 Andreas Röhler
  2020-04-06 22:55 ` Noam Postavsky
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Röhler @ 2020-04-06  9:11 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-13 17:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06  9:11 Ert batch-mode error Andreas Röhler
2020-04-06 22:55 ` Noam Postavsky
2020-04-07  3:50   ` Stefan Monnier
2020-04-08  6:47     ` Andreas Röhler
2020-04-13 14:50     ` Noam Postavsky
2020-04-13 17:47       ` Stefan Monnier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).