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