From: W. Trevor King Date: Mon, 12 Nov 2012 03:07:27 +0000 (-0500) Subject: test_keyword: fix test_main and mark so nosetests will ignore it X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dd37cf1b172afbb648a56392edcb78f722c2db8e;p=gentoolkit.git test_keyword: fix test_main and mark so nosetests will ignore it --- diff --git a/pym/gentoolkit/test/test_keyword.py b/pym/gentoolkit/test/test_keyword.py index 3e72e5f..9add43a 100644 --- a/pym/gentoolkit/test/test_keyword.py +++ b/pym/gentoolkit/test/test_keyword.py @@ -2,10 +2,6 @@ import sys import unittest import warnings from tempfile import NamedTemporaryFile -try: - from test import test_support -except ImportError: - from test import support as test_support from gentoolkit import keyword from gentoolkit.test import cmp @@ -50,7 +46,10 @@ class TestGentoolkitKeyword(unittest.TestCase): def test_main(): - test_support.run_unittest(TestGentoolkitHelpers2) + suite = unittest.TestLoader().loadTestsFromTestCase( + TestGentoolkitKeyword) + unittest.TextTestRunner(verbosity=2).run(suite) +test_main.__test__ = False if __name__ == '__main__':