From: Zac Medico Date: Tue, 30 Aug 2011 18:27:24 +0000 (-0700) Subject: Tweak PYTHONPATH check in emerge/repoman tests. X-Git-Tag: v2.2.0_alpha52~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a69782c5177e47da66bb500f4c83380d7ba4add2;p=portage.git Tweak PYTHONPATH check in emerge/repoman tests. --- diff --git a/pym/portage/tests/emerge/test_simple.py b/pym/portage/tests/emerge/test_simple.py index c8f150ac0..971193f93 100644 --- a/pym/portage/tests/emerge/test_simple.py +++ b/pym/portage/tests/emerge/test_simple.py @@ -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: diff --git a/pym/portage/tests/repoman/test_simple.py b/pym/portage/tests/repoman/test_simple.py index ba5014777..bfc32fc2a 100644 --- a/pym/portage/tests/repoman/test_simple.py +++ b/pym/portage/tests/repoman/test_simple.py @@ -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: