public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/tests/
Date: Sat,  8 Oct 2011 21:54:04 +0000 (UTC)	[thread overview]
Message-ID: <5dbf25fc1ff3d951f3936662283c37a03afce4ca.vapier@gentoo> (raw)

commit:     5dbf25fc1ff3d951f3936662283c37a03afce4ca
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  8 21:53:34 2011 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat Oct  8 21:53:59 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=5dbf25fc

tests: fix whitespace to be consistent

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

---
 pym/portage/tests/__init__.py |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/pym/portage/tests/__init__.py b/pym/portage/tests/__init__.py
index dcf73ba..3897aba 100644
--- a/pym/portage/tests/__init__.py
+++ b/pym/portage/tests/__init__.py
@@ -27,7 +27,7 @@ def main():
 		suite.addTests(getTestFromCommandLine(sys.argv[1:], basedir))
 		return TextTestRunner(verbosity=2).run(suite)
 
-  # the os.walk help mentions relative paths as being quirky
+	# the os.walk help mentions relative paths as being quirky
 	# I was tired of adding dirs to the list, so now we add __test__
 	# to each dir we want tested.
 	for root, dirs, files in os.walk(basedir):
@@ -206,21 +206,21 @@ class TestCase(unittest.TestCase):
 		   unexpected exception.
 		"""
 		try:
-		    callableObj(*args, **kwargs)
+			callableObj(*args, **kwargs)
 		except excClass:
-		    return
+			return
 		else:
-		    if hasattr(excClass,'__name__'): excName = excClass.__name__
-		    else: excName = str(excClass)
-		    raise self.failureException("%s not raised: %s" % (excName, msg))
-			
+			if hasattr(excClass,'__name__'): excName = excClass.__name__
+			else: excName = str(excClass)
+			raise self.failureException("%s not raised: %s" % (excName, msg))
+
 class TextTestRunner(unittest.TextTestRunner):
 	"""
 	We subclass unittest.TextTestRunner to output SKIP for tests that fail but are skippable
 	"""
-	
+
 	def _makeResult(self):
-	        return TextTestResult(self.stream, self.descriptions, self.verbosity)
+		return TextTestResult(self.stream, self.descriptions, self.verbosity)
 
 	def run(self, test):
 		"""
@@ -250,7 +250,7 @@ class TextTestRunner(unittest.TextTestRunner):
 		else:
 			self.stream.writeln("OK")
 		return result
-	
+
 test_cps = ['sys-apps/portage','virtual/portage']
 test_versions = ['1.0', '1.0-r1','2.3_p4','1.0_alpha57']
 test_slots = [ None, '1','gentoo-sources-2.6.17','spankywashere']



             reply	other threads:[~2011-10-08 21:54 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-08 21:54 Mike Frysinger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-05-07  0:27 [gentoo-commits] proj/portage:master commit in: pym/portage/tests/ Zac Medico
2014-09-29 22:27 Brian Dolbec
2013-10-21  2:20 Mike Frysinger
2013-10-17  7:31 Mike Frysinger
2013-08-03  1:37 Zac Medico
2013-03-19  8:36 Zac Medico
2013-03-13  4:10 Arfrever Frehtes Taifersar Arahesis
2013-01-31 19:56 Zac Medico
2013-01-03 23:31 Zac Medico
2011-12-16  2:42 Zac Medico
2011-10-10  2:22 Zac Medico
2011-10-10  1:55 Zac Medico
2011-10-09 20:41 Mike Frysinger
2011-10-09 20:41 Mike Frysinger
2011-10-09 20:41 Mike Frysinger
2011-08-29  2:59 Zac Medico
2011-08-26  6:13 Zac Medico
2011-08-25 21:54 Zac Medico

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=5dbf25fc1ff3d951f3936662283c37a03afce4ca.vapier@gentoo \
    --to=vapier@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