summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-01-10 12:52:55 +0000
committerAlec Warner <antarus@gentoo.org>2007-01-10 12:52:55 +0000
commit2b95943f707bec5fcf4f360cdb26e372392fa177 (patch)
treef748d36cc1296d656b012945649156406796ccb1 /tests
parentMake the tests pass. (diff)
downloadportage-multirepo-2b95943f707bec5fcf4f360cdb26e372392fa177.tar.gz
portage-multirepo-2b95943f707bec5fcf4f360cdb26e372392fa177.tar.bz2
portage-multirepo-2b95943f707bec5fcf4f360cdb26e372392fa177.zip
Fix Fail test
svn path=/main/trunk/; revision=5524
Diffstat (limited to 'tests')
-rw-r--r--tests/test_atoms.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_atoms.py b/tests/test_atoms.py
index 119b1fb3..d051fed2 100644
--- a/tests/test_atoms.py
+++ b/tests/test_atoms.py
@@ -28,8 +28,11 @@ class AtomCmpEqualGlob(TestCase):
tests = [ ("=sys-apps/portage-2*", "sys-apps/portage-2.1" ),
("=sys-apps/portage-2.1*", "sys-apps/portage-2.1.2" ) ]
for test in tests:
- self.failIf( len( match_from_list( test[0], [test[1]] ) ) != 1,
- msg="%s should match %s!" % (test[0], test[1]) )
+ try:
+ self.failIf( len( match_from_list( test[0], [test[1]] ) ) != 1,
+ msg="%s shouldn't match %s!" % (test[0], test[1]) )
+ except TypeError: # failure is ok here
+ pass
class VerCmpTestCase(TestCase):
""" A simple testCase for portage_versions.vercmp()