test_helpers: fix test_main and mark so nosetests will ignore it
authorW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 03:09:37 +0000 (22:09 -0500)
committerW. Trevor King <wking@tremily.us>
Mon, 12 Nov 2012 03:22:30 +0000 (22:22 -0500)
pym/gentoolkit/test/test_helpers.py

index 5bafaae981e4c6e588cb820a91a10ab455ca465b..24aeedf1efda6edcfdead842927a7d659c223c99 100644 (file)
@@ -115,7 +115,11 @@ class TestFileOwner(unittest.TestCase):
 
 
 def test_main():
-       test_support.run_unittest(TestGentoolkitHelpers2)
+       suite = unittest.TestLoader()
+       suite.loadTestsFromTestCase(TestChangeLog)
+       suite.loadTestsFromTestCase(TestFileOwner)
+       unittest.TextTestRunner(verbosity=2).run(suite)
+test_main.__test__ = False
 
 
 if __name__ == '__main__':