diff options
| author | W. Trevor King <wking@tremily.us> | 2012-11-11 22:18:37 -0500 |
|---|---|---|
| committer | W. Trevor King <wking@tremily.us> | 2012-11-11 22:22:31 -0500 |
| commit | 5647b2befe4f22fdeb53f9ea30fc090763ca3050 (patch) | |
| tree | 1ee92b3a0bea7ea71d2fd7a8f59e17fa413c6c75 /pym | |
| parent | b645f2431eaf017d6fe9f15f7e31ccba9091a061 (diff) | |
| download | gentoolkit-5647b2befe4f22fdeb53f9ea30fc090763ca3050.tar.gz | |
test_cpv: fix test_main and mark so nosetests will ignore it
Diffstat (limited to 'pym')
| -rw-r--r-- | pym/gentoolkit/test/test_cpv.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pym/gentoolkit/test/test_cpv.py b/pym/gentoolkit/test/test_cpv.py index 3749404..b4de959 100644 --- a/pym/gentoolkit/test/test_cpv.py +++ b/pym/gentoolkit/test/test_cpv.py @@ -7,10 +7,6 @@ # $Header$ import unittest -try: - from test import test_support -except ImportError: - from test import support as test_support from gentoolkit.cpv import * from gentoolkit.test import cmp @@ -136,7 +132,10 @@ class TestGentoolkitCPV(unittest.TestCase): def test_main(): - test_support.run_unittest(TestGentoolkitCPV) + suite = unittest.TestLoader().loadTestsFromTestCase(TestGentoolkitCPV) + unittest.TextTestRunner(verbosity=2).run(suite) +test_main.__test__ = False + if __name__ == '__main__': test_main() |
