summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-11 21:29:50 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-11 21:29:50 +0000
commit926bde8115543103e483fa373089a46c393b8eaf (patch)
tree54910da86faab0e3c9c4be91b710552166e9a0bb
parent49fffb5d3a94a5598f28355cb1b0ad169a31807f (diff)
downloadportage-926bde8115543103e483fa373089a46c393b8eaf.tar.gz
portage-926bde8115543103e483fa373089a46c393b8eaf.tar.bz2
portage-926bde8115543103e483fa373089a46c393b8eaf.zip
catch and validate new ValueError Exception
svn path=/main/trunk/; revision=5569
-rw-r--r--tests/portage_dep/test_isvalidatom.py9
1 files changed, 6 insertions, 3 deletions
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