From 096b295fe7bff8a0e83047cde0b5ce350d84d50f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 11 Nov 2012 22:06:49 -0500 Subject: [PATCH] test_query: fix test_main and mark so nosetests will ignore it --- pym/gentoolkit/test/test_query.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pym/gentoolkit/test/test_query.py b/pym/gentoolkit/test/test_query.py index c020be1..1513b5b 100644 --- a/pym/gentoolkit/test/test_query.py +++ b/pym/gentoolkit/test/test_query.py @@ -1,10 +1,6 @@ import unittest import warnings from tempfile import NamedTemporaryFile, mktemp -try: - from test import test_support -except ImportError: - from test import support as test_support from gentoolkit import query from gentoolkit import errors @@ -102,7 +98,9 @@ class TestQuery(unittest.TestCase): def test_main(): - test_support.run_unittest(TestGentoolkitHelpers2) + suite = unittest.TestLoader().loadTestsFromTestCase(TestQuery) + unittest.TextTestRunner(verbosity=2).run(suite) +test_main.__test__ = False if __name__ == '__main__': -- 2.26.2