Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 57A85429E26 for ; Tue, 13 Dec 2011 09:21:39 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pJvO55qVuhHM for ; Tue, 13 Dec 2011 09:21:38 -0800 (PST) Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222]) by olra.theworths.org (Postfix) with ESMTP id B7FE0429E25 for ; Tue, 13 Dec 2011 09:21:38 -0800 (PST) Received: from thor.loria.fr (thor.loria.fr [152.81.12.250]) by ks3536.kimsufi.com (Postfix) with ESMTPSA id 12F866A0026; Tue, 13 Dec 2011 18:21:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net; s=key-schnouki; t=1323796898; bh=l0GrMoZ9Ziwg3RJDdXE0A7DlYEeFsFkJcvrMUPBFFhk=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=NjAHLnFsxKD2Uxh/uwZqka8dsrdsOrL7FqjanUJWijWUZlrWZutWV1C77A0Xrmto7 CvHkr1wac5HJjlj4ZntkL9O/v+WQpI9XcV8KdNC/kEbj1T+Ib9e+0ZegiDaP1v8hZL 3Ur6OXR/mp0LZUfpysol4HDMiWF/CMXbv+QHTfcc= From: Thomas Jost To: Dmitry Kurochkin , notmuch@notmuchmail.org Subject: Re: [PATCH 1/2] test: add a function to run Python tests In-Reply-To: <877h236tpx.fsf@gmail.com> References: <1323251178-20409-1-git-send-email-schnouki@schnouki.net> <877h236tpx.fsf@gmail.com> User-Agent: Notmuch/0.10.2+106~gccdca5f (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-unknown-linux-gnu) Date: Tue, 13 Dec 2011 18:21:34 +0100 Message-ID: <87liqgqtep.fsf@thor.loria.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2011 17:21:39 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 11 Dec 2011 18:58:18 +0400, Dmitry Kurochkin wrote: > Perhaps we should have a test-lib.py for test-specific stuff like this > (similar to test-lib.el)? I think it would be cleaner and makes it easy > to add more Python test auxiliary functions later. Well, right now that would probably be overkill: the stdout-to-file redirection takes 3 lines at most. Besides we would still need to set some environment variables to run python with the correct directories. But of course if we need to add more helper functions for running python tests, then a test-lib.py would be nice. Maybe we could even think about using one of Python's unit test libs for that: doctest, unittest (both in the standard library) and nose seem to be the most popular ones. Regards, =2D-=20 Thomas/Schnouki --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJO54meAAoJEMPdciX+bh5IQHQH/0XVE71m7PMwB9SLKalrH7V8 +YYszNlmBrQaezfonxpl69TToIEPFOekUQHv1BAJtWyYrbiBgVai5puXETE13OyC Oehr/Xls+XnTo9XLH9R51DjwH1raxNwx564inYvzZi7kb/6MUSDdK3MPbPy/zB5s AKn6INvjOgjWaU6DeTw89UAFg0OntIW11qaumUxggnCIAtMGVP4PBEYpqXH8nuYa 6YFnGKGtAjebFPbq7Opt/d1JCUbErZ6ZwsrAP1auI9dxeynMWqptHvJw22WJX7Ed LKd58UzCsw8skOIG7S3Vn1HKw94cwAtRdVuJpSngSazH4bkBPPM1jtZsosVzJXU= =jwtP -----END PGP SIGNATURE----- --=-=-=--