unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Ert batch-mode error
Date: Mon, 6 Apr 2020 11:11:38 +0200	[thread overview]
Message-ID: <087407fd-d0a3-af4e-938d-522f0cdb698b@easy-emacs.de> (raw)

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





             reply	other threads:[~2020-04-06  9:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-06  9:11 Andreas Röhler [this message]
2020-04-06 22:55 ` Ert batch-mode error 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=087407fd-d0a3-af4e-938d-522f0cdb698b@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).