From: W. Trevor King Date: Mon, 12 Nov 2012 03:06:49 +0000 (-0500) Subject: test_query: fix test_main and mark so nosetests will ignore it X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=096b295fe7bff8a0e83047cde0b5ce350d84d50f;p=gentoolkit.git test_query: fix test_main and mark so nosetests will ignore it --- 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__':