From: Arfrever Frehtes Taifersar Arahesis Date: Wed, 13 Jun 2012 17:44:44 +0000 (+0200) Subject: Fix test failure with Python 2.6. X-Git-Tag: v2.2.0_alpha111~46 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=811236c327fa58ca2b8f643fd641ff89d2437115;p=portage.git Fix test failure with Python 2.6. --- diff --git a/pym/portage/tests/repoman/test_echangelog.py b/pym/portage/tests/repoman/test_echangelog.py index 74aa1c54c..502aa7292 100644 --- a/pym/portage/tests/repoman/test_echangelog.py +++ b/pym/portage/tests/repoman/test_echangelog.py @@ -61,7 +61,7 @@ class RepomanEchangelogTestCase(TestCase): # Test missing ChangeLog, but with empty skel (i.e. do nothing). UpdateChangeLog(self.pkgdir, self.user, 'test!', '/does/not/exist', self.cat, self.pkg, quiet=True) actual_cl = self._readlines(self.changelog) - self.assertGreater(len(actual_cl[0]), 0) + self.assertTrue(len(actual_cl[0]) > 0) def testEmptyChangeLog(self): # Make sure we do the right thing with a 0-byte ChangeLog