summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-11 21:38:32 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-11 21:38:32 +0000
commit28ae3c3314f3df05116df51c76df4150f913aceb (patch)
treedce625a09574b2ab3c858931f3a2a4dfbbd5ce7c /tests
parentFix comments for catpkgsplit (diff)
downloadportage-multirepo-28ae3c3314f3df05116df51c76df4150f913aceb.tar.gz
portage-multirepo-28ae3c3314f3df05116df51c76df4150f913aceb.tar.bz2
portage-multirepo-28ae3c3314f3df05116df51c76df4150f913aceb.zip
Handle the exception in isvalidatom, change it to use a portage exceptoin, thanks to Zac for pointing this out
svn path=/main/trunk/; revision=5571
Diffstat (limited to 'tests')
-rw-r--r--tests/portage_dep/test_isvalidatom.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/portage_dep/test_isvalidatom.py b/tests/portage_dep/test_isvalidatom.py
index 64b02939..7835fbd0 100644
--- a/tests/portage_dep/test_isvalidatom.py
+++ b/tests/portage_dep/test_isvalidatom.py
@@ -32,9 +32,5 @@ class IsValidAtom(TestCase):
atom_type = "valid"
else:
atom_type = "invalid"
- try:
- self.assertEqual( bool(isvalidatom( test[0] )), test[1],
- msg="isvalidatom(%s) != %s" % ( test[0], test[1] ) )
- except ValueError:
- if not test[1]:
- pass
+ self.assertEqual( bool(isvalidatom( test[0] )), test[1],
+ msg="isvalidatom(%s) != %s" % ( test[0], test[1] ) )