diff options
-rw-r--r-- | pym/portage/tests/dep/test_dep_getslot.py | 12 |
1 files changed, 5 insertions, 7 deletions
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 ) |