aboutsummaryrefslogtreecommitdiff
path: root/python/package_database_TEST.py
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-12-03 17:36:09 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-12-03 17:36:09 +0000
commitb954baed8b3979216e4079f62b1a7ee8d616e3b8 (patch)
treee7843f32e644c7b201971db39bea387f57042f52 /python/package_database_TEST.py
parent0894d90ee740817bc5c72ba35b60894efcdd6ac7 (diff)
downloadpaludis-b954baed8b3979216e4079f62b1a7ee8d616e3b8.tar.gz
paludis-b954baed8b3979216e4079f62b1a7ee8d616e3b8.tar.xz
Fix PackageDepSpec after r4057. Also allow converting Python lists to Options classes. Fixes: ticket:451
Diffstat (limited to 'python/package_database_TEST.py')
-rwxr-xr-xpython/package_database_TEST.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/package_database_TEST.py b/python/package_database_TEST.py
index 1fba70a..f21c374 100755
--- a/python/package_database_TEST.py
+++ b/python/package_database_TEST.py
@@ -57,7 +57,7 @@ class TestCase_PackageDatabase(unittest.TestCase):
"foo/bar-1.0::testrepo",
"foo/bar-2.0::testrepo"])
- pkgs = list(self.db.query(Query.Matches(PackageDepSpec(">=foo/bar-10", PackageDepSpecParseMode.PERMISSIVE)),
+ pkgs = list(self.db.query(Query.Matches(parse_user_package_dep_spec(">=foo/bar-10", [])),
QueryOrder.ORDER_BY_VERSION))
self.assertEqual(len(pkgs), 0)