From: Zac Medico Date: Sat, 12 Sep 2009 15:06:02 +0000 (-0000) Subject: Fix bugs and poor assumptions. X-Git-Tag: v2.2_rc41~41 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2f970abe35172e0af65caccae4055a7bc7afa367;p=portage.git Fix bugs and poor assumptions. svn path=/main/trunk/; revision=14227 --- diff --git a/pym/portage/tests/dep/test_dep_getslot.py b/pym/portage/tests/dep/test_dep_getslot.py index 61ea81586..925a03ffc 100644 --- a/pym/portage/tests/dep/test_dep_getslot.py +++ b/pym/portage/tests/dep/test_dep_getslot.py @@ -19,13 +19,11 @@ class DepGetSlot(TestCase): for cpv in cpvs: for version in versions: for slot in slots: - mycpv = cpv[:] + mycpv = cpv if version: - cpv += version - if slot: + mycpv = '=' + mycpv + '-' + version + if slot is not None: self.assertEqual( dep_getslot( - cpv + slot_char + slot ), slot ) + mycpv + slot_char + slot ), slot ) else: - self.assertEqual( dep_getslot( cpv ), slot ) - - self.assertEqual( dep_getslot( "sys-apps/portage:"), "" ) + self.assertEqual( dep_getslot( mycpv ), slot )