From: Alec Warner Date: Thu, 11 Jan 2007 21:29:50 +0000 (-0000) Subject: catch and validate new ValueError Exception X-Git-Tag: v2.1.2~62 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=926bde8115543103e483fa373089a46c393b8eaf;p=portage.git catch and validate new ValueError Exception svn path=/main/trunk/; revision=5569 --- diff --git a/tests/portage_dep/test_isvalidatom.py b/tests/portage_dep/test_isvalidatom.py index 397b46c2e..64b029391 100644 --- a/tests/portage_dep/test_isvalidatom.py +++ b/tests/portage_dep/test_isvalidatom.py @@ -32,6 +32,9 @@ class IsValidAtom(TestCase): atom_type = "valid" else: atom_type = "invalid" - - self.assertEqual( bool(isvalidatom( test[0] )), test[1], - msg="isvalidatom(%s) != %s" % ( test[0], test[1] ) ) + try: + self.assertEqual( bool(isvalidatom( test[0] )), test[1], + msg="isvalidatom(%s) != %s" % ( test[0], test[1] ) ) + except ValueError: + if not test[1]: + pass