public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/
@ 2012-11-13 20:41 Paul Varner
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Varner @ 2012-11-13 20:41 UTC (permalink / raw
  To: gentoo-commits

commit:     096b295fe7bff8a0e83047cde0b5ce350d84d50f
Author:     W. Trevor King <wking <AT> tremily <DOT> us>
AuthorDate: Mon Nov 12 03:06:49 2012 +0000
Commit:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Mon Nov 12 03:22:20 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=096b295f

test_query: fix test_main and mark so nosetests will ignore it

---
 pym/gentoolkit/test/test_query.py |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/pym/gentoolkit/test/test_query.py b/pym/gentoolkit/test/test_query.py
index c020be1..1513b5b 100644
--- a/pym/gentoolkit/test/test_query.py
+++ b/pym/gentoolkit/test/test_query.py
@@ -1,10 +1,6 @@
 import unittest
 import warnings
 from tempfile import NamedTemporaryFile, mktemp
-try:
-	from test import test_support
-except ImportError:
-	from test import support as test_support
 
 from gentoolkit import query
 from gentoolkit import errors
@@ -102,7 +98,9 @@ class TestQuery(unittest.TestCase):
 
 
 def test_main():
-	test_support.run_unittest(TestGentoolkitHelpers2)
+	suite = unittest.TestLoader().loadTestsFromTestCase(TestQuery)
+	unittest.TextTestRunner(verbosity=2).run(suite)
+test_main.__test__ = False
 
 
 if __name__ == '__main__':


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/
@ 2012-11-13 20:41 Paul Varner
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Varner @ 2012-11-13 20:41 UTC (permalink / raw
  To: gentoo-commits

commit:     dd37cf1b172afbb648a56392edcb78f722c2db8e
Author:     W. Trevor King <wking <AT> tremily <DOT> us>
AuthorDate: Mon Nov 12 03:07:27 2012 +0000
Commit:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Mon Nov 12 03:22:26 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=dd37cf1b

test_keyword: fix test_main and mark so nosetests will ignore it

---
 pym/gentoolkit/test/test_keyword.py |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/pym/gentoolkit/test/test_keyword.py b/pym/gentoolkit/test/test_keyword.py
index 3e72e5f..9add43a 100644
--- a/pym/gentoolkit/test/test_keyword.py
+++ b/pym/gentoolkit/test/test_keyword.py
@@ -2,10 +2,6 @@ import sys
 import unittest
 import warnings
 from tempfile import NamedTemporaryFile
-try:
-	from test import test_support
-except ImportError:
-	from test import support as test_support
 
 from gentoolkit import keyword
 from gentoolkit.test import cmp
@@ -50,7 +46,10 @@ class TestGentoolkitKeyword(unittest.TestCase):
 
 
 def test_main():
-	test_support.run_unittest(TestGentoolkitHelpers2)
+	suite = unittest.TestLoader().loadTestsFromTestCase(
+		TestGentoolkitKeyword)
+	unittest.TextTestRunner(verbosity=2).run(suite)
+test_main.__test__ = False
 
 
 if __name__ == '__main__':


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/
@ 2012-11-13 20:41 Paul Varner
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Varner @ 2012-11-13 20:41 UTC (permalink / raw
  To: gentoo-commits

commit:     a58955f2429e83d1f290571ced555275993eecdb
Author:     W. Trevor King <wking <AT> tremily <DOT> us>
AuthorDate: Mon Nov 12 03:09:37 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=a58955f2

test_helpers: fix test_main and mark so nosetests will ignore it

---
 pym/gentoolkit/test/test_helpers.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/pym/gentoolkit/test/test_helpers.py b/pym/gentoolkit/test/test_helpers.py
index 5bafaae..24aeedf 100644
--- a/pym/gentoolkit/test/test_helpers.py
+++ b/pym/gentoolkit/test/test_helpers.py
@@ -115,7 +115,11 @@ class TestFileOwner(unittest.TestCase):
 
 
 def test_main():
-	test_support.run_unittest(TestGentoolkitHelpers2)
+	suite = unittest.TestLoader()
+	suite.loadTestsFromTestCase(TestChangeLog)
+	suite.loadTestsFromTestCase(TestFileOwner)
+	unittest.TextTestRunner(verbosity=2).run(suite)
+test_main.__test__ = False
 
 
 if __name__ == '__main__':


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/
@ 2012-11-13 20:41 Paul Varner
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Varner @ 2012-11-13 20:41 UTC (permalink / raw
  To: gentoo-commits

commit:     4f3ca38bace8245773855e944ecb204ecdb6f9bc
Author:     W. Trevor King <wking <AT> tremily <DOT> us>
AuthorDate: Mon Nov 12 03:02:10 2012 +0000
Commit:     Paul Varner <fuzzyray <AT> gentoo <DOT> org>
CommitDate: Mon Nov 12 03:02:10 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=4f3ca38b

test_syntax: fix test_main and mark so nosetests will ignore it

* fix TestGentoolkitHelpers2 -> TestForSyntaxErrors
* use unittest.TestLoader and TextTestRunner instead of test.test_support

From the Python documentation [1]:

  The test package is meant for internal use by Python only. It is
  documented for the benefit of the core developers of Python. Any use
  of this package outside of Python's standard library is discouraged
  as code mentioned here can change or be removed without notice
  between releases of Python.

[1]: http://docs.python.org/2/library/test.html

---
 pym/gentoolkit/test/test_syntax.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/pym/gentoolkit/test/test_syntax.py b/pym/gentoolkit/test/test_syntax.py
index 325034a..7a990ca 100644
--- a/pym/gentoolkit/test/test_syntax.py
+++ b/pym/gentoolkit/test/test_syntax.py
@@ -27,7 +27,10 @@ class TestForSyntaxErrors(unittest.TestCase):
 
 
 def test_main():
-	test_support.run_unittest(TestGentoolkitHelpers2)
+	suite = unittest.TestLoader().loadTestsFromTestCase(
+		TestForSyntaxErrors)
+	unittest.TextTestRunner(verbosity=2).run(suite)
+test_main.__test__ = False
 
 
 if __name__ == '__main__':


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/
@ 2012-11-13 20:41 Paul Varner
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Varner @ 2012-11-13 20:41 UTC (permalink / raw
  To: gentoo-commits

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()


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/
@ 2012-11-13 20:41 Paul Varner
  0 siblings, 0 replies; 6+ messages in thread
From: Paul Varner @ 2012-11-13 20:41 UTC (permalink / raw
  To: gentoo-commits

commit:     5647b2befe4f22fdeb53f9ea30fc090763ca3050
Author:     W. Trevor King <wking <AT> tremily <DOT> us>
AuthorDate: Mon Nov 12 03:18:37 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=5647b2be

test_cpv: fix test_main and mark so nosetests will ignore it

---
 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()


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-11-13 20:43 UTC | newest]

Thread overview: 6+ messages (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/ Paul Varner
  -- strict thread matches above, loose matches on Subject: below --
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
2012-11-13 20:41 Paul Varner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox