diff options
Diffstat (limited to 'pym/portage/tests/versions/test_vercmp.py')
-rw-r--r-- | pym/portage/tests/versions/test_vercmp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/tests/versions/test_vercmp.py b/pym/portage/tests/versions/test_vercmp.py index 23e7dd575..aa7969ce8 100644 --- a/pym/portage/tests/versions/test_vercmp.py +++ b/pym/portage/tests/versions/test_vercmp.py @@ -24,7 +24,7 @@ class VerCmpTestCase(TestCase): ("12.2.5", "12.2b"), ] for test in tests: - self.failIf( vercmp( test[0], test[1] ) <= 0, msg="%s < %s? Wrong!" % (test[0],test[1]) ) + self.assertFalse( vercmp( test[0], test[1] ) <= 0, msg="%s < %s? Wrong!" % (test[0],test[1]) ) def testVerCmpLess(self): """ @@ -47,7 +47,7 @@ class VerCmpTestCase(TestCase): ("12.2b", "12.2.5"), ] for test in tests: - self.failIf( vercmp( test[0], test[1]) >= 0, msg="%s > %s? Wrong!" % (test[0],test[1])) + self.assertFalse( vercmp( test[0], test[1]) >= 0, msg="%s > %s? Wrong!" % (test[0],test[1])) def testVerCmpEqual(self): @@ -59,7 +59,7 @@ class VerCmpTestCase(TestCase): ("1.0-r0", "1.0-r0"), ("1.0-r1", "1.0-r1")] for test in tests: - self.failIf( vercmp( test[0], test[1]) != 0, msg="%s != %s? Wrong!" % (test[0],test[1])) + self.assertFalse( vercmp( test[0], test[1]) != 0, msg="%s != %s? Wrong!" % (test[0],test[1])) def testVerNotEqual(self): @@ -77,4 +77,4 @@ class VerCmpTestCase(TestCase): ("12.2b", "12.2"), ] for test in tests: - self.failIf( vercmp( test[0], test[1]) == 0, msg="%s == %s? Wrong!" % (test[0],test[1])) + self.assertFalse( vercmp( test[0], test[1]) == 0, msg="%s == %s? Wrong!" % (test[0],test[1])) |