From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Dynamic modules: should should-error work? Date: Sun, 22 Nov 2015 20:28:49 +0200 Message-ID: <838u5p3n32.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1448216965 5986 80.91.229.3 (22 Nov 2015 18:29:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 18:29:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 22 19:29:17 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a0ZNz-0007qj-Qc for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 19:29:15 +0100 Original-Received: from localhost ([::1]:57030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0ZNz-0003G7-Ty for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 13:29:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0ZNn-0003Fo-89 for emacs-devel@gnu.org; Sun, 22 Nov 2015 13:29:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0ZNh-0002ok-MK for emacs-devel@gnu.org; Sun, 22 Nov 2015 13:29:03 -0500 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:57225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0ZNh-0002og-E5 for emacs-devel@gnu.org; Sun, 22 Nov 2015 13:28:57 -0500 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NY800000ASFF100@mtaout26.012.net.il> for emacs-devel@gnu.org; Sun, 22 Nov 2015 20:31:53 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NY800H9BBH5EW80@mtaout26.012.net.il> for emacs-devel@gnu.org; Sun, 22 Nov 2015 20:31:53 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195047 Archived-At: It looks like should-error doesn't work with functions implemented in modules. For example, try this in modules/mod-test/test.el: (ert-deftest mod-test-sum-test () (should-error (mod-test-sum 1 2 3))) I cannot get this test to succeed, although the error message about wrong number of arguments is emitted. What am I missing?