diff options
author | Alec Warner <antarus@gentoo.org> | 2007-01-10 12:52:55 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-01-10 12:52:55 +0000 |
commit | 2b95943f707bec5fcf4f360cdb26e372392fa177 (patch) | |
tree | f748d36cc1296d656b012945649156406796ccb1 | |
parent | 2751871a9f691cbc1bcf4d983aadc6d166cb5a96 (diff) | |
download | portage-2b95943f707bec5fcf4f360cdb26e372392fa177.tar.gz portage-2b95943f707bec5fcf4f360cdb26e372392fa177.tar.bz2 portage-2b95943f707bec5fcf4f360cdb26e372392fa177.zip |
Fix Fail test
svn path=/main/trunk/; revision=5524
-rw-r--r-- | tests/test_atoms.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_atoms.py b/tests/test_atoms.py index 119b1fb3c..d051fed22 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() |