From: "Paul Varner" <fuzzyray@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/
Date: Tue, 13 Nov 2012 20:41:00 +0000 (UTC) [thread overview]
Message-ID: <1352690550.b7d42fb5975dabb62feb1e7f77b3dd2793780378.fuzzyray@gentoo> (raw)
commit: b7d42fb5975dabb62feb1e7f77b3dd2793780378
Author: W. Trevor King <wking <AT> tremily <DOT> us>
AuthorDate: Mon Nov 12 03:16:11 2012 +0000
Commit: Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Mon Nov 12 03:22:30 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=b7d42fb5
test_atom: fix test_main and mark so nosetests will ignore it
---
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()
next reply other threads:[~2012-11-13 20:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-13 20:41 Paul Varner [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-11-13 20:41 [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/ Paul Varner
2012-11-13 20:41 Paul Varner
2012-11-13 20:41 Paul Varner
2012-11-13 20:41 Paul Varner
2012-11-13 20:41 Paul Varner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352690550.b7d42fb5975dabb62feb1e7f77b3dd2793780378.fuzzyray@gentoo \
--to=fuzzyray@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox