diff options
| author | W. Trevor King <wking@tremily.us> | 2012-11-11 22:16:11 -0500 |
|---|---|---|
| committer | W. Trevor King <wking@tremily.us> | 2012-11-11 22:22:30 -0500 |
| commit | b7d42fb5975dabb62feb1e7f77b3dd2793780378 (patch) | |
| tree | 050005743ed2bce3cf07ebb7236086ab335e585c | |
| parent | d8966c9a08c3b18abf1f9811644626862faab523 (diff) | |
| download | gentoolkit-b7d42fb5975dabb62feb1e7f77b3dd2793780378.tar.gz | |
test_atom: fix test_main and mark so nosetests will ignore it
| -rw-r--r-- | pym/gentoolkit/test/test_atom.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pym/gentoolkit/test/test_atom.py b/pym/gentoolkit/test/test_atom.py index b498545..abafce3 100644 --- a/pym/gentoolkit/test/test_atom.py +++ b/pym/gentoolkit/test/test_atom.py @@ -6,10 +6,6 @@ # $Header$ import unittest -try: - from test import test_support -except ImportError: - from test import support as test_support from gentoolkit.atom import * from gentoolkit.test import cmp @@ -147,7 +143,10 @@ class TestGentoolkitAtom(unittest.TestCase): def test_main(): - test_support.run_unittest(TestGentoolkitAtom) + suite = unittest.TestLoader().loadTestsFromTestCase(TestGentoolkitAtom) + unittest.TextTestRunner(verbosity=2).run(suite) +test_main.__test__ = False + if __name__ == '__main__': test_main() |
