* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/equery/
@ 2012-11-13 20:41 Paul Varner
0 siblings, 0 replies; only message in thread
From: Paul Varner @ 2012-11-13 20:41 UTC (permalink / raw
To: gentoo-commits
commit: b645f2431eaf017d6fe9f15f7e31ccba9091a061
Author: W. Trevor King <wking <AT> tremily <DOT> us>
AuthorDate: Mon Nov 12 03:17:21 2012 +0000
Commit: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Mon Nov 12 03:22:31 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=b645f243
equery/test_init: fix test_main and mark so nosetests will ignore it
---
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__':
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-13 20:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-13 20:41 [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/equery/ Paul Varner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox