From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Andreas_R=c3=b6hler?= Newsgroups: gmane.emacs.help Subject: Ert batch-mode error Date: Mon, 6 Apr 2020 11:11:38 +0200 Message-ID: <087407fd-d0a3-af4e-938d-522f0cdb698b@easy-emacs.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="16408"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 06 11:05:51 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jLNhX-00049T-Br for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 Apr 2020 11:05:51 +0200 Original-Received: from localhost ([::1]:56564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLNhW-0008LG-EO for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 06 Apr 2020 05:05:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39777) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLNgg-0008J5-7X for help-gnu-emacs@gnu.org; Mon, 06 Apr 2020 05:05:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLNgc-0000lu-1g for help-gnu-emacs@gnu.org; Mon, 06 Apr 2020 05:04:57 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.133]:36087) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jLNgb-0000l6-PE for help-gnu-emacs@gnu.org; Mon, 06 Apr 2020 05:04:53 -0400 Original-Received: from [192.168.178.39] ([94.134.177.176]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MrQN5-1j01cS1Rkl-00oUq0 for ; Mon, 06 Apr 2020 11:04:51 +0200 Content-Language: en-US X-Provags-ID: V03:K1:KgRLYzgGOb7PXQJ8Ib22TMDGHkeyiJDngOw67Lv+aHabaNBVXpK FmOyKDQYLRsNCeZ9vgOuv/XSJoLmO69+Hv4OM57EG472/fEnvORZhjiDudoIvg3yL1erooI 655HFFCtf9mroByDCZ8QxgEYPBMTgDTpkZISEnbYTV5+RCjLfoeIio4/wie5XKiI3i8tL0K Pdb2CqEOr0tBr27to/Xyw== X-UI-Out-Filterresults: notjunk:1;V03:K0:8mekLzMXt7U=:UVwu6BPc+YdJ73zuLS981o UEwmv8km8jQ0OOOhsUgCh0mdOINUjl0BSYmecLNcYW8k1bqJpmOt0MAX3jXSI1Vjt7vGQ/qnS CX0nGKtvtY70zn7bbyrAuA1s+V287zv0aoNGhxkw7Z4jcXx+4CXGB0svXIk81OLlJJyxu7p4S mLTYa/AlFh9ZqdDMyRrWBTG8Qxx3YuM41Ok+DrDEx8wbpqS7QFKlNYmFnjSx1dA9vT6CJWhPf JTjfnjLJRYGVMfiCE2zCD8V3Os7wO/tffSKsYTSe3qH2Xe60yyYibbZ0IEOOL2JxJVDtj+bIL VvEwcP4xp3mYe0FNLDYFVs+EbPSPdXy4hxiY0+CIWg7kKvZwo0P8ct0tf4/7mIJEOCAKgQBol vPbhHd7bThEbJCYj2VXAG84RX18887G+JErnl2UeJxPJMS06sWex9VyN95TfuEhs3Rh9QReOE f4VFtuo5gAmW4FpjTSOQFSna+rZ6WREgGXh/xjEekkG3SeUu2cMCb3o1lq1wu084aFo5JcAJj v974Di+srg+5GQXgQS3khoo7NgPsfJBx07PVGxzIrRw+TtJ8SEEn0peRm5YgSdwRn5JB6l86+ G6vvhE3ZjMMeKK/Q6MpV7nXdHonBnC615DY/M4UoaqjsDH+t7xkZvb7Mnq+Ko/Wo/X0VasneI l+9elYnNVrvlfblCKgwubn8jLeqOW054rsaU/X3ibAE1kJTC4y2ZfXFx4w2QXa1wC9Dz9nbWb JZHOHR4h4iic9UAvB9W9j8Ek/kRld5JGTQ1M6VH3ypUKrrYHz05PKKAEBhEQfNsIw1KL39Y3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.133 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122756 Archived-At: 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