aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-10-10 22:03:40 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-10-10 22:12:06 +0100
commitb72601a91b640a34c7aa2dc1ef92428ecf22b1cc (patch)
treed134abcc8be8c35b2f5f827af503bf4be9a7e72f
parent57307fb6ce7a3b3e25d0f3e3fc4a4cae0e5893fa (diff)
downloadpaludis-b72601a91b640a34c7aa2dc1ef92428ecf22b1cc.tar.gz
paludis-b72601a91b640a34c7aa2dc1ef92428ecf22b1cc.tar.xz
Stupid Python
-rwxr-xr-xpython/repository_TEST.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/repository_TEST.py b/python/repository_TEST.py
index 4ae1ec8..c3c728f 100755
--- a/python/repository_TEST.py
+++ b/python/repository_TEST.py
@@ -62,9 +62,9 @@ class TestCase_01_Repository(unittest.TestCase):
self.assert_(not repo.has_package_named("bar/foo"))
def test_07_package_ids(self):
- self.assertEquals([x.version for x in repo.package_ids("foo/bar")],
- [VersionSpec("1.0"), VersionSpec("2.0")]
- )
+ y = list(x.version for x in repo.package_ids("foo/bar"));
+ z = [VersionSpec("1.0"), VersionSpec("2.0")]
+ self.assertEquals(y, z)
self.assertEquals(len(list(repo.package_ids("bar/baz"))), 0)
def test_08_category_names(self):