Tweak PYTHONPATH check in emerge/repoman tests.
authorZac Medico <zmedico@gentoo.org>
Tue, 30 Aug 2011 18:27:24 +0000 (11:27 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 30 Aug 2011 18:27:24 +0000 (11:27 -0700)
pym/portage/tests/emerge/test_simple.py
pym/portage/tests/repoman/test_simple.py

index c8f150ac0af80af946c5dce9c804aedcae5b0080..971193f93dc4c1098cbb6408e668d640c835fb4c 100644 (file)
@@ -91,7 +91,7 @@ class SimpleEmergeTestCase(TestCase):
                if pythonpath is not None and not pythonpath.strip():
                        pythonpath = None
                if pythonpath is not None and \
-                       pythonpath.startswith(PORTAGE_PYM_PATH + ":"):
+                       pythonpath.split(":")[0] == PORTAGE_PYM_PATH:
                        pass
                else:
                        if pythonpath is None:
index ba5014777613b05ef63c6bfebc9ca20e205b3160..bfc32fc2ab801414985c7443ff20bd5f39c5900e 100644 (file)
@@ -117,7 +117,7 @@ class SimpleRepomanTestCase(TestCase):
                if pythonpath is not None and not pythonpath.strip():
                        pythonpath = None
                if pythonpath is not None and \
-                       pythonpath.startswith(PORTAGE_PYM_PATH + ":"):
+                       pythonpath.split(":")[0] == PORTAGE_PYM_PATH:
                        pass
                else:
                        if pythonpath is None: