From: W. Trevor King Date: Mon, 12 Nov 2012 03:18:37 +0000 (-0500) Subject: test_cpv: fix test_main and mark so nosetests will ignore it X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5647b2befe4f22fdeb53f9ea30fc090763ca3050;p=gentoolkit.git test_cpv: fix test_main and mark so nosetests will ignore it --- diff --git a/pym/gentoolkit/test/test_cpv.py b/pym/gentoolkit/test/test_cpv.py index 3749404..b4de959 100644 --- a/pym/gentoolkit/test/test_cpv.py +++ b/pym/gentoolkit/test/test_cpv.py @@ -7,10 +7,6 @@ # $Header$ import unittest -try: - from test import test_support -except ImportError: - from test import support as test_support from gentoolkit.cpv import * from gentoolkit.test import cmp @@ -136,7 +132,10 @@ class TestGentoolkitCPV(unittest.TestCase): def test_main(): - test_support.run_unittest(TestGentoolkitCPV) + suite = unittest.TestLoader().loadTestsFromTestCase(TestGentoolkitCPV) + unittest.TextTestRunner(verbosity=2).run(suite) +test_main.__test__ = False + if __name__ == '__main__': test_main()