public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/eclean/
@ 2011-04-10 18:30 Brian Dolbec
  0 siblings, 0 replies; 3+ messages in thread
From: Brian Dolbec @ 2011-04-10 18:30 UTC (permalink / raw
  To: gentoo-commits

commit:     cf5ee10b16f9b7be11a281de5d6814927a47ed73
Author:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
AuthorDate: Sun Apr 10 18:22:07 2011 +0000
Commit:     Brian Dolbec <brian.dolbec <AT> gmail <DOT> com>
CommitDate: Sun Apr 10 18:29:41 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=cf5ee10b

temporary fix for a test failure due to the added dotfiles check.
Need to add proper test data and checks for it.

---
 pym/gentoolkit/test/eclean/test_search.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pym/gentoolkit/test/eclean/test_search.py b/pym/gentoolkit/test/eclean/test_search.py
index 328c543..7980161 100644
--- a/pym/gentoolkit/test/eclean/test_search.py
+++ b/pym/gentoolkit/test/eclean/test_search.py
@@ -151,7 +151,7 @@ class TestCheckLimits(unittest.TestCase):
 				print("Error getting test data for index:", i)
 			#self.target_class.set_data(self.set_limits(test))
 			size_chk, time_chk, exclude = test["params"]
-			checks = self.target_class._get_default_checks(size_chk, time_chk, exclude)
+			checks = self.target_class._get_default_checks(size_chk, time_chk, exclude, False)
 			clean_me = self.target_class._check_limits(self.workdir, checks, clean_me)
 			results = sorted(clean_me)
 			run_results.append(results)



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

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

commit:     d8966c9a08c3b18abf1f9811644626862faab523
Author:     W. Trevor King <wking <AT> tremily <DOT> us>
AuthorDate: Mon Nov 12 03:13:12 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=d8966c9a

eclean/test_search: fix test_main and mark so nosetests will ignore it

---
 pym/gentoolkit/test/eclean/test_search.py |   20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/pym/gentoolkit/test/eclean/test_search.py b/pym/gentoolkit/test/eclean/test_search.py
old mode 100644
new mode 100755
index 7980161..7e27f9e
--- a/pym/gentoolkit/test/eclean/test_search.py
+++ b/pym/gentoolkit/test/eclean/test_search.py
@@ -16,11 +16,6 @@ from tempfile import NamedTemporaryFile, mkdtemp
 import unittest
 import re
 
-try:
-	from test import test_support
-except ImportError:
-	from test import support as test_support
-
 from gentoolkit.test.eclean.distsupport import *
 import gentoolkit.eclean.search as search
 from gentoolkit.eclean.search import DistfilesSearch
@@ -618,14 +613,13 @@ class TestRemoveProtected(unittest.TestCase):
 
 
 def test_main():
-
-	# Run tests
-	test_support.run_unittest(TestCheckLimits('test_check_limits'))
-	test_support.run_unittest( TestFetchRestricted('test__fetch_restricted'))
-	test_support.run_unittest( TestFetchRestricted('test_unrestricted'))
-	test_support.run_unittest( TestNonDestructive('test_non_destructive'))
-	test_support.run_unittest( TestNonDestructive('test_destructive'))
-	test_support.run_unittest( TestRemoveProtected('test_remove_protected'))
+	suite = unittest.TestLoader()
+	suite.loadTestsFromTestCase(TestCheckLimits)
+	suite.loadTestsFromTestCase(TestFetchRestricted)
+	suite.loadTestsFromTestCase(TestNonDestructive)
+	suite.loadTestsFromTestCase(TestRemoveProtected)
+	unittest.TextTestRunner(verbosity=2).run(suite)
+test_main.__test__ = False
 
 
 if __name__ == '__main__':


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

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

commit:     f96e8dfc59ac1a4d7cc1bb296083561335e9a0e3
Author:     W. Trevor King <wking <AT> tremily <DOT> us>
AuthorDate: Mon Nov 12 03:21:11 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=f96e8dfc

eclean/test_clean: remove unused test_test_support import

---
 pym/gentoolkit/test/eclean/test_clean.py |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/pym/gentoolkit/test/eclean/test_clean.py b/pym/gentoolkit/test/eclean/test_clean.py
old mode 100644
new mode 100755
index 25a760a..706b3d1
--- a/pym/gentoolkit/test/eclean/test_clean.py
+++ b/pym/gentoolkit/test/eclean/test_clean.py
@@ -19,10 +19,6 @@ import os
 import sys
 
 import gentoolkit.pprinter as pp
-try:
-	from test import test_support
-except ImportError:
-	from test import support as test_support
 
 from gentoolkit.eclean.clean import CleanUp
 


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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-10 18:30 [gentoo-commits] proj/gentoolkit:gentoolkit commit in: pym/gentoolkit/test/eclean/ Brian Dolbec
  -- strict thread matches above, loose matches on Subject: below --
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