From dd37cf1b172afbb648a56392edcb78f722c2db8e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 11 Nov 2012 22:07:27 -0500 Subject: [PATCH] test_keyword: fix test_main and mark so nosetests will ignore it --- pym/gentoolkit/test/test_keyword.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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__': -- 2.26.2