summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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