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 D61DF1381F3 for ; Tue, 13 Nov 2012 20:43:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF48421C04D; Tue, 13 Nov 2012 20:41:07 +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 28DD221C056 for ; Tue, 13 Nov 2012 20:41:07 +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 A9E5133DA91 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 00D53E5457 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: <1352689330.4f3ca38bace8245773855e944ecb204ecdb6f9bc.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_syntax.py X-VCS-Directories: pym/gentoolkit/test/ X-VCS-Committer: fuzzyray X-VCS-Committer-Name: Paul Varner X-VCS-Revision: 4f3ca38bace8245773855e944ecb204ecdb6f9bc 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: f124364d-ed8f-4919-afbb-f82baa12361f X-Archives-Hash: e37531702425c8e6dc076a6b8fe5dd7e commit: 4f3ca38bace8245773855e944ecb204ecdb6f9bc Author: W. Trevor King tremily us> AuthorDate: Mon Nov 12 03:02:10 2012 +0000 Commit: Paul Varner gentoo org> CommitDate: Mon Nov 12 03:02:10 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=4f3ca38b test_syntax: fix test_main and mark so nosetests will ignore it * fix TestGentoolkitHelpers2 -> TestForSyntaxErrors * use unittest.TestLoader and TextTestRunner instead of test.test_support >From the Python documentation [1]: The test package is meant for internal use by Python only. It is documented for the benefit of the core developers of Python. Any use of this package outside of Python's standard library is discouraged as code mentioned here can change or be removed without notice between releases of Python. [1]: http://docs.python.org/2/library/test.html --- pym/gentoolkit/test/test_syntax.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/pym/gentoolkit/test/test_syntax.py b/pym/gentoolkit/test/test_syntax.py index 325034a..7a990ca 100644 --- a/pym/gentoolkit/test/test_syntax.py +++ b/pym/gentoolkit/test/test_syntax.py @@ -27,7 +27,10 @@ class TestForSyntaxErrors(unittest.TestCase): def test_main(): - test_support.run_unittest(TestGentoolkitHelpers2) + suite = unittest.TestLoader().loadTestsFromTestCase( + TestForSyntaxErrors) + unittest.TextTestRunner(verbosity=2).run(suite) +test_main.__test__ = False if __name__ == '__main__':