From: W. Trevor King Date: Mon, 12 Nov 2012 03:17:21 +0000 (-0500) Subject: equery/test_init: fix test_main and mark so nosetests will ignore it X-Git-Url: http://git.tremily.us/?p=gentoolkit.git;a=commitdiff_plain;h=b645f2431eaf017d6fe9f15f7e31ccba9091a061 equery/test_init: fix test_main and mark so nosetests will ignore it --- diff --git a/pym/gentoolkit/test/equery/test_init.py b/pym/gentoolkit/test/equery/test_init.py index 520b97d..22db564 100644 --- a/pym/gentoolkit/test/equery/test_init.py +++ b/pym/gentoolkit/test/equery/test_init.py @@ -1,8 +1,4 @@ import unittest -try: - from test import test_support -except ImportError: - from test import support as test_support from gentoolkit import equery @@ -44,7 +40,9 @@ class TestEqueryInit(unittest.TestCase): def test_main(): - test_support.run_unittest(TestEqueryInit) + suite = unittest.TestLoader().loadTestsFromTestCase(TestEqueryInit) + unittest.TextTestRunner(verbosity=2).run(suite) +test_main.__test__ = False if __name__ == '__main__':