diff options
| author | W. Trevor King <wking@tremily.us> | 2012-11-11 22:17:21 -0500 |
|---|---|---|
| committer | W. Trevor King <wking@tremily.us> | 2012-11-11 22:22:31 -0500 |
| commit | b645f2431eaf017d6fe9f15f7e31ccba9091a061 (patch) | |
| tree | 4505d919c911c636377c6773febe4762e80c483c /pym | |
| parent | b7d42fb5975dabb62feb1e7f77b3dd2793780378 (diff) | |
| download | gentoolkit-b645f2431eaf017d6fe9f15f7e31ccba9091a061.tar.gz | |
equery/test_init: fix test_main and mark so nosetests will ignore it
Diffstat (limited to 'pym')
| -rw-r--r-- | pym/gentoolkit/test/equery/test_init.py | 8 |
1 files 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__': |
