From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 51C3D1381F3 for ; Tue, 13 Nov 2012 20:43:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD37F21C059; Tue, 13 Nov 2012 20:41:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1461621C050 for ; Tue, 13 Nov 2012 20:41:08 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9E2BF33DA65 for ; Tue, 13 Nov 2012 20:41:04 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2064FE5458 for ; Tue, 13 Nov 2012 20:41:00 +0000 (UTC) From: "Paul Varner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Paul Varner" Message-ID: <1352690540.096b295fe7bff8a0e83047cde0b5ce350d84d50f.fuzzyray@gentoo> Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/ X-VCS-Repository: proj/gentoolkit X-VCS-Files: pym/gentoolkit/test/test_query.py X-VCS-Directories: pym/gentoolkit/test/ X-VCS-Committer: fuzzyray X-VCS-Committer-Name: Paul Varner X-VCS-Revision: 096b295fe7bff8a0e83047cde0b5ce350d84d50f X-VCS-Branch: gentoolkit Date: Tue, 13 Nov 2012 20:41:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: abbdc718-0f36-4f9d-b2fb-193c50a5f3dc X-Archives-Hash: 34233b5c55b68712c2085c0cacfa7bdf commit: 096b295fe7bff8a0e83047cde0b5ce350d84d50f Author: W. Trevor King tremily us> AuthorDate: Mon Nov 12 03:06:49 2012 +0000 Commit: Paul Varner gentoo org> CommitDate: Mon Nov 12 03:22:20 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=096b295f test_query: fix test_main and mark so nosetests will ignore it --- pym/gentoolkit/test/test_query.py | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pym/gentoolkit/test/test_query.py b/pym/gentoolkit/test/test_query.py index c020be1..1513b5b 100644 --- a/pym/gentoolkit/test/test_query.py +++ b/pym/gentoolkit/test/test_query.py @@ -1,10 +1,6 @@ import unittest import warnings from tempfile import NamedTemporaryFile, mktemp -try: - from test import test_support -except ImportError: - from test import support as test_support from gentoolkit import query from gentoolkit import errors @@ -102,7 +98,9 @@ class TestQuery(unittest.TestCase): def test_main(): - test_support.run_unittest(TestGentoolkitHelpers2) + suite = unittest.TestLoader().loadTestsFromTestCase(TestQuery) + unittest.TextTestRunner(verbosity=2).run(suite) +test_main.__test__ = False if __name__ == '__main__':