diff options
author | Alec Warner <antarus@gentoo.org> | 2007-01-11 21:38:32 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-01-11 21:38:32 +0000 |
commit | 28ae3c3314f3df05116df51c76df4150f913aceb (patch) | |
tree | dce625a09574b2ab3c858931f3a2a4dfbbd5ce7c /tests/portage_dep | |
parent | da67328341fef2cc4d9e85be0694aad113b30c0a (diff) | |
download | portage-28ae3c3314f3df05116df51c76df4150f913aceb.tar.gz portage-28ae3c3314f3df05116df51c76df4150f913aceb.tar.bz2 portage-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/portage_dep')
-rw-r--r-- | tests/portage_dep/test_isvalidatom.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/portage_dep/test_isvalidatom.py b/tests/portage_dep/test_isvalidatom.py index 64b029391..7835fbd0c 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] ) ) |